This commit is contained in:
parent
e86cfdf6ea
commit
f023c5d8fe
|
@ -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];
|
||||
|
|
Loading…
Reference in New Issue