Update: 更新WebSocket模式
This commit is contained in:
@@ -43,6 +43,9 @@ const { Socket } = WebSocket;
|
||||
|
||||
|
||||
window.addEventListener('load', () => {
|
||||
if (!goog.isElectron && Env.hasSocketServer) {
|
||||
Socket.init();
|
||||
}
|
||||
const app = new App($('body')[0]);
|
||||
Mixly.app = app;
|
||||
const $xml = $(goog.get(Env.boardIndexPath));
|
||||
@@ -84,9 +87,6 @@ Loader.start = () => {
|
||||
if (!goog.isElectron && window.location.host.indexOf('mixly.cn')) {
|
||||
window.userOpEvents = new UserOPEvents();
|
||||
}
|
||||
if (Env.hasSocketServer) {
|
||||
Socket.init();
|
||||
}
|
||||
if (goog.isElectron && typeof LibManager === 'object') {
|
||||
LibManager.init(() => Loader.init());
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user