mirror of
https://github.com/HIllya51/LunaHook.git
synced 2024-12-24 04:04:14 +08:00
Update lunajspatch.js
This commit is contained in:
parent
3d8d0d319e
commit
e8c2998027
@ -34,16 +34,19 @@ function Electronhook() {
|
||||
}
|
||||
function retryinject(times){
|
||||
if(times==0)return;
|
||||
|
||||
if(window && window.tyrano && tyrano.plugin){
|
||||
Electronhook();
|
||||
try{
|
||||
if(window.tyrano && tyrano.plugin){
|
||||
Electronhook();
|
||||
}
|
||||
else if(window.Utils && Utils.RPGMAKER_NAME){
|
||||
NWjshook();
|
||||
}
|
||||
else{
|
||||
setTimeout(retryinject,3000,times-1);
|
||||
}
|
||||
}
|
||||
else if(window && window.Utils && Utils.RPGMAKER_NAME){
|
||||
NWjshook();
|
||||
catch(err){
|
||||
//非主线程,甚至没有window对象,会弹窗报错
|
||||
}
|
||||
else{
|
||||
setTimeout(retryinject,3000,times-1);
|
||||
}
|
||||
|
||||
}
|
||||
setTimeout(retryinject,3000,3);
|
Loading…
x
Reference in New Issue
Block a user