You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When you load the UserPage for the first time the editor will be themed default and the rest will be in vs-dark mode. I tried the following change:
create: function(id,value,language){if(!id){return;}let_theme="vs-dark";// was "default"letuserPreferences=localStorage.getItem("userPreferences");if(userPreferences){constuserPreferencesJSON=JSON.parse(userPreferences);if(userPreferencesJSON.hasOwnProperty("DarkTheme")&&userPreferencesJSON.DarkTheme){_theme="vs-dark";}
Which appears to fix it at first until you refresh the page when you have the theme set to default. The editor shows in vs-dark mode. The problem appears to be a failure to load the setting properly when you refresh or when there's no userPreferences set.
The text was updated successfully, but these errors were encountered:
When you load the UserPage for the first time the editor will be themed
default
and the rest will be invs-dark
mode. I tried the following change:Which appears to fix it at first until you refresh the page when you have the theme set to
default
. The editor shows invs-dark
mode. The problem appears to be a failure to load the setting properly when you refresh or when there's nouserPreferences
set.The text was updated successfully, but these errors were encountered: