Update lunajspatch.js

This commit is contained in:
恍兮惚兮 2024-03-15 23:19:57 +08:00
parent 7be474802a
commit 5ea4fee22f

View File

@ -34,6 +34,7 @@ function Electronhook() {
}
function retryinject(times){
if(times==0)return;
try{
if(window.tyrano && tyrano.plugin){
Electronhook();
}
@ -43,5 +44,9 @@ function retryinject(times){
else{
setTimeout(retryinject,3000,times-1);
}
}
catch{
//非主线程甚至没有window对象会弹窗报错
}
}
setTimeout(retryinject,3000,3);