kitchen sink gets its own set of themes

This commit is contained in:
Fabian Jakobs 2011-12-20 12:18:02 +01:00
commit f3cd1d1f7e
3 changed files with 3 additions and 4 deletions

View file

@ -92,7 +92,7 @@ function loadTheme(name, callback) {
themes[name] = 1;
var base = name.split("/").pop();
var fileName = "src/theme-" + base + ".js";
var fileName = "demo/kitchen-sink/theme-" + base + "-uncompressed.js";
net.loadScript(fileName, callback);
}
@ -350,7 +350,7 @@ bindDropdown("mode", function(value) {
});
bindDropdown("theme", function(value) {
if (window.require.packaged) {
if (module.packaged) {
loadTheme(value, function() {
env.editor.setTheme(value);
});