This commit is contained in:
libccy 2017-04-15 20:29:15 +08:00
parent 5ea03cdca8
commit 6d458af27e
1 changed files with 6 additions and 16 deletions

View File

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