remove theme config option #1061

This commit is contained in:
Hakim El Hattab
2014-12-18 17:45:51 +01:00
parent c3f9aabe04
commit 7c03d60186
2 changed files with 11 additions and 25 deletions

View File

@ -121,9 +121,6 @@
// Focuses body when page changes visiblity to ensure keyboard shortcuts work
focusBodyOnPageVisibilityChange: true,
// Theme (see /css/theme)
theme: null,
// Transition style
transition: 'default', // none/fade/slide/convex/concave/zoom
@ -870,18 +867,6 @@
} );
}
// Load the theme in the config, if it's not already loaded
if( config.theme && dom.theme ) {
var themeURL = dom.theme.getAttribute( 'href' );
var themeFinder = /[^\/]*?(?=\.css)/;
var themeName = themeURL.match(themeFinder)[0];
if( config.theme !== themeName ) {
themeURL = themeURL.replace(themeFinder, config.theme);
dom.theme.setAttribute( 'href', themeURL );
}
}
sync();
}