mirror of
https://github.com/HIllya51/LunaHook.git
synced 2024-12-25 12:44:13 +08:00
Update lunajspatch.js
This commit is contained in:
parent
7be474802a
commit
5ea4fee22f
@ -34,6 +34,7 @@ function Electronhook() {
|
|||||||
}
|
}
|
||||||
function retryinject(times){
|
function retryinject(times){
|
||||||
if(times==0)return;
|
if(times==0)return;
|
||||||
|
try{
|
||||||
if(window.tyrano && tyrano.plugin){
|
if(window.tyrano && tyrano.plugin){
|
||||||
Electronhook();
|
Electronhook();
|
||||||
}
|
}
|
||||||
@ -43,5 +44,9 @@ function retryinject(times){
|
|||||||
else{
|
else{
|
||||||
setTimeout(retryinject,3000,times-1);
|
setTimeout(retryinject,3000,times-1);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
catch{
|
||||||
|
//非主线程,甚至没有window对象,会弹窗报错
|
||||||
|
}
|
||||||
}
|
}
|
||||||
setTimeout(retryinject,3000,3);
|
setTimeout(retryinject,3000,3);
|
Loading…
x
Reference in New Issue
Block a user