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

Commit

Permalink
fix(websocket bux): bug
Browse files Browse the repository at this point in the history
  • Loading branch information
DR-Univer committed Aug 25, 2020
1 parent 1a2fed9 commit 4eda52a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/controllers/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,10 @@ const server = {

let msg = pako.gzip(encodeURIComponent(JSON.stringify(d)), { to: "string" });

_this.websocket.send(msg);
if(_this.websocket!=null){
_this.websocket.send(msg);
}

},
websocket: null,
wxErrorCount: 0,
Expand Down
2 changes: 2 additions & 0 deletions src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@
allowEdit:true,
forceCalculation:false,
plugins: ['chart'],
allowUpdate:true,
updateUrl:"www.baidu.com",
data: [sheetCell,sheetFormula,sheetConditionFormat,sheetTable,sheetSparkline,sheetComment,sheetPivotTableData,sheetPivotTable,sheetChart]
})

Expand Down

0 comments on commit 4eda52a

Please sign in to comment.