Flash between opening of workspaces, reload #8
This commit is contained in:
parent
d112a774d0
commit
2c08cb8512
|
@ -179,10 +179,9 @@
|
|||
<script>
|
||||
(function() {
|
||||
try {
|
||||
var defaultTheme = 'vs-dark';
|
||||
var theme = window.localStorage.getItem('storage://global/workbench.theme');
|
||||
if (theme && theme !== defaultTheme) {
|
||||
window.document.body.className = 'monaco-shell'; // remove the default theme bit unless we are in default theme
|
||||
if (theme && theme.indexOf('vs-dark') < 0) {
|
||||
window.document.body.className = 'monaco-shell'; // remove the dark theme class if we are on a light theme
|
||||
}
|
||||
} catch (error) {
|
||||
console.error(error);
|
||||
|
|
Loading…
Reference in a new issue