Themes could only be set once in demo. They didn't get set if the theme was already loaded
This commit is contained in:
parent
acce858aa2
commit
89c7c2c4ca
1 changed files with 3 additions and 1 deletions
|
|
@ -721,8 +721,10 @@ exports.launch = function(env) {
|
||||||
|
|
||||||
var themes = {};
|
var themes = {};
|
||||||
function loadTheme(name, callback) {
|
function loadTheme(name, callback) {
|
||||||
if (themes[name])
|
if (themes[name]) {
|
||||||
|
callback();
|
||||||
return;
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
themes[name] = 1;
|
themes[name] = 1;
|
||||||
var base = name.split("/").pop();
|
var base = name.split("/").pop();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue