mirror of
https://github.com/BTMuli/TeyvatGuide.git
synced 2026-05-03 23:45:49 +08:00
@@ -279,6 +279,14 @@ class TGClient {
|
||||
case "teyvat_open":
|
||||
createPost(<string>arg.payload);
|
||||
break;
|
||||
case "teyvat_retry": {
|
||||
const executeJS = `javascript:(function(){
|
||||
window.location.reload();
|
||||
})();`;
|
||||
await invoke("execute_js", { label: "mhy_client", js: executeJS });
|
||||
await this.loadJSBridge();
|
||||
break;
|
||||
}
|
||||
default:
|
||||
console.warn(`[customCallback] ${arg.method}`);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user