@netless/window-manager 0.4.9-canary.1 → 0.4.9-canary.2

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": "@netless/window-manager",
3
- "version": "0.4.9-canary.1",
3
+ "version": "0.4.9-canary.2",
4
4
  "description": "",
5
5
  "main": "dist/index.es.js",
6
6
  "module": "dist/index.es.js",
package/src/index.ts CHANGED
@@ -849,12 +849,11 @@ export class WindowManager extends InvisiblePlugin<WindowMangerAttributes> {
849
849
  if (!this.attributes[Fields.Cursors]) {
850
850
  this.safeSetAttributes({ [Fields.Cursors]: {} });
851
851
  }
852
- const sceneState = this.displayer.state.sceneState;
853
852
  if (!this.attributes["_mainScenePath"]) {
854
- this.safeSetAttributes({ _mainScenePath: sceneState.scenePath });
853
+ this.safeSetAttributes({ _mainScenePath: ROOT_DIR });
855
854
  }
856
855
  if (!this.attributes["_mainSceneIndex"]) {
857
- this.safeSetAttributes({ _mainSceneIndex: sceneState.index });
856
+ this.safeSetAttributes({ _mainSceneIndex: 0 });
858
857
  }
859
858
  }
860
859
  }