@netless/app-slide 0.0.2 → 0.0.3

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/app-slide",
3
- "version": "0.0.2",
3
+ "version": "0.0.3",
4
4
  "main": "dist/main.cjs.js",
5
5
  "module": "dist/main.es.js",
6
6
  "types": "dist/index.d.ts",
package/src/index.ts CHANGED
@@ -48,7 +48,7 @@ const SlideApp: NetlessApp<Attributes> = {
48
48
  const sideEffect = new SideEffectManager();
49
49
  // 因为 view 存在,init scene path 必定存在
50
50
  const baseScenePath = context.getInitScenePath() as string;
51
- const showController = import.meta.env.DEV;
51
+ const showController = import.meta.env.DEV || context.getAppOptions()?.debug;
52
52
  const channel = `channel-${context.appId}`;
53
53
 
54
54
  let theController: SlideController | undefined;