This commit is contained in:
libccy 2017-04-15 19:51:12 +08:00
parent e86cfdf6ea
commit f023c5d8fe
1 changed files with 12 additions and 6 deletions

View File

@ -118,6 +118,7 @@
onclick:function(bool){
game.saveConfig('keep_awake',bool);
if(window.plugins&&window.plugins.insomnia){
try{
if(bool){
window.plugins.insomnia.keepAwake();
}
@ -125,6 +126,8 @@
window.plugins.insomnia.allowSleepAgain();
}
}
catch(e){}
}
}
},
auto_confirm:{
@ -34573,8 +34576,11 @@
document.body.classList.add('statusbar');
}
if(lib.config.keep_awake&&window.plugins&&window.plugis.insomnia){
try{
window.plugins.insomnia.keepAwake();
}
catch(e){}
}
// var themeentry='background_color_'+lib.config.theme;
// if(lib.config[themeentry]){
// document.body.dataset[themeentry]=lib.config[themeentry];