@reactoo/watchtogether-sdk-js 2.5.71 → 2.5.72

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reactoo/watchtogether-sdk-js",
3
- "version": "2.5.71",
3
+ "version": "2.5.72",
4
4
  "description": "Javascript SDK for Reactoo",
5
5
  "main": "src/index.js",
6
6
  "unpkg": "dist/watchtogether-sdk.min.js",
@@ -33,7 +33,7 @@ const syncModule = function ({room, emitter} = {}) {
33
33
 
34
34
  const startSyncLoop = () => {
35
35
 
36
- if(!isConnected()) {
36
+ if(!isConnected() && _playerInterfaceOptions.type !== 'push') {
37
37
  room._log('--- Sync loop will not start due to user not connected yet ---');
38
38
  return
39
39
  }
@@ -47,7 +47,7 @@ const syncModule = function ({room, emitter} = {}) {
47
47
 
48
48
  stopFlag = false;
49
49
 
50
- if(!_playerInterfaceOptions.type === 'push') {
50
+ if(_playerInterfaceOptions.type !== 'push') {
51
51
  const loop = () => {
52
52
 
53
53
  isSyncing = true;
@@ -85,11 +85,6 @@ const syncModule = function ({room, emitter} = {}) {
85
85
  loop2();
86
86
  }
87
87
 
88
-
89
-
90
- //TODO: push sync
91
-
92
-
93
88
  };
94
89
 
95
90
  const stopSyncLoop = (doNotResetRetryCount) => {