@24i/bigscreen-sdk 1.0.1 → 1.0.2-alpha.2069
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
|
@@ -116,7 +116,9 @@ export class MenuAndContentContainer<T extends string = string>
|
|
|
116
116
|
isMenuAvailable() {
|
|
117
117
|
const { router: { current: router } } = this.props;
|
|
118
118
|
const scene = router?.getActiveRoute()?.component.current as SceneWithMenuAvailability;
|
|
119
|
-
|
|
119
|
+
const { isMenuEnabled } = scene.constructor;
|
|
120
|
+
if (typeof isMenuEnabled === 'function') return isMenuEnabled();
|
|
121
|
+
return !!isMenuEnabled;
|
|
120
122
|
}
|
|
121
123
|
|
|
122
124
|
/**
|