Skip to content

Commit

Permalink
add room syncMode api
Browse files Browse the repository at this point in the history
  • Loading branch information
AderanFeng committed Oct 12, 2023
1 parent 5505173 commit cbee004
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
"react": "^16.12.0",
"react-dom": "^16.12.0",
"whatwg-fetch": "^3.0.0",
"white-web-sdk": "2.16.44"
"white-web-sdk": "2.16.45"
},
"devDependencies": {
"@babel/core": "^7.7.4",
Expand Down
4 changes: 4 additions & 0 deletions src/bridge/Room.ts
Original file line number Diff line number Diff line change
Expand Up @@ -693,6 +693,10 @@ export class RoomAsyncBridge {
responseCallback(dispatchDocsEventOuter(window.manager, event, options || {}));
};
}

syncMode = (useSyncMode: boolean) => {
this.room.syncMode = useSyncMode;
}
}

export class RoomStateBridge {
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -6728,10 +6728,10 @@ which@^2.0.1:
dependencies:
isexe "^2.0.0"

[email protected].44:
version "2.16.44"
resolved "https://registry.yarnpkg.com/white-web-sdk/-/white-web-sdk-2.16.44.tgz#07e733d476461408d42694dc5875ca596d058ff9"
integrity sha512-hLCcv4LEAnk2liAdh5EezDwrOuOEtZzASN4xPFkdLaJ7XFIyQNXPVWyacL0DCL4MFOKBVSdyFfnm+n3IUAaizg==
[email protected].45:
version "2.16.45"
resolved "https://registry.yarnpkg.com/white-web-sdk/-/white-web-sdk-2.16.45.tgz#376c67613e8e60474901ca28333391661a5c188e"
integrity sha512-bcHEXSYHQoi+8Uq7JwuV9KsSWhq0ZpkCUbFm88MQHzcvehRnjy/2C5judltRXZIY+LPodG79L8XVMWR/B7pbCQ==
dependencies:
"@juggle/resize-observer" "^3.3.1"
"@netless/canvas-polyfill" "^0.0.4"
Expand Down

0 comments on commit cbee004

Please sign in to comment.