evmux-app-framework 0.1.13 → 0.1.14

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": "evmux-app-framework",
3
- "version": "0.1.13",
3
+ "version": "0.1.14",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -185,9 +185,10 @@ let createEventResultObject = (requestName, eventName, result) => {
185
185
  computeVolumeMultiplier(userAppInstanceId, componentId) {
186
186
  if (this.getComponentCount(userAppInstanceId) <= 1) return 1
187
187
  const isPrv = componentId.startsWith('live_')
188
- if (this._app?.studioMode && !isPrv) return 0
189
- const comp = this._userAppInstances[userAppInstanceId]?.instances?.[componentId]
190
- if (this._app?.isLandscapeAndPortraitMode && comp?.portraitMode) return 0
188
+ if (this._app && this._app.studioMode && !isPrv) return 0
189
+ const appInstance = this._userAppInstances[userAppInstanceId]
190
+ const comp = appInstance && appInstance.instances && appInstance.instances[componentId]
191
+ if (this._app && this._app.isLandscapeAndPortraitMode && comp && comp.portraitMode) return 0
191
192
  return 1
192
193
  }
193
194