User Themes: don't load a null stylesheet
If the stylesheet is not set, or it cannot be found, don't try to load it.
This commit is contained in:
@@ -31,9 +31,11 @@ ThemeManager.prototype = {
|
||||
_stylesheet = _userCssStylesheet;
|
||||
}
|
||||
|
||||
global.log('loading user theme: ' + _stylesheet)
|
||||
Main.setThemeStylesheet(_stylesheet);
|
||||
Main.loadTheme();
|
||||
if (_stylesheet) {
|
||||
global.log('loading user theme: ' + _stylesheet)
|
||||
Main.setThemeStylesheet(_stylesheet);
|
||||
Main.loadTheme();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user