Flash between opening of workspaces, reload #8

This commit is contained in:
Benjamin Pasero 2015-11-19 11:25:20 +01:00
parent d112a774d0
commit 2c08cb8512

View file

@ -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);