Skip to content
This repository was archived by the owner on Jul 28, 2024. It is now read-only.

Commit 8c3295d

Browse files
committed
Compatible with new version
1 parent 8c09aae commit 8c3295d

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

FakePlayerManager/FakePlayerController.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@
99

1010
const wait = ms => new Promise(resolve => setTimeout(resolve, ms));
1111

12+
// Compatible with new version
13+
if(LXL_SimpleForm == undefined)
14+
var LXL_SimpleForm = LLSE_SimpleForm;
15+
1216
////////////////////////////////// Global Config /////////////////////////////////
1317
const lastestOnlineTimePath = `${PluginDir}/lastOnlineTimes.json`;
1418

@@ -1728,7 +1732,7 @@ class FakePlayerWebSocketController extends FakePlayerController {
17281732
if (!this.ready) {
17291733
if (!await this.connectWebsocket()) {
17301734
if (Settings.debugMode) logError("Error in send msg", msg);
1731-
throw new Error(tr("ws.error.send", { code: this.wsc.errorCode() }));
1735+
new Error(tr("ws.error.send", { code: this.wsc.errorCode() }));
17321736
}
17331737
}
17341738
return new Promise((resolve, reject) => {

0 commit comments

Comments
 (0)