@mohamedatia/fly-design-system 2.6.3 → 2.6.4
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.
|
@@ -450,23 +450,9 @@ class FlyRemoteRouter {
|
|
|
450
450
|
* when the InjectionToken splits between host and remote bundles
|
|
451
451
|
* (a known Native Federation edge case).
|
|
452
452
|
*/
|
|
453
|
-
isEmbedded =
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
const fromGlobal = g.__FLYOS_SHELL__ === true;
|
|
457
|
-
const result = fromWindowData || fromGlobal;
|
|
458
|
-
// DIAGNOSTIC — remove once confirmed working.
|
|
459
|
-
// eslint-disable-next-line no-console
|
|
460
|
-
console.log('[FlyRemoteRouter] init', {
|
|
461
|
-
version: '2.6.3-debug',
|
|
462
|
-
fromWindowData,
|
|
463
|
-
fromGlobal,
|
|
464
|
-
result,
|
|
465
|
-
windowData: this.windowData,
|
|
466
|
-
globalKeys: Object.keys(g).filter(k => k.startsWith('__FLYOS')),
|
|
467
|
-
});
|
|
468
|
-
return result;
|
|
469
|
-
})();
|
|
453
|
+
isEmbedded = this.windowData != null
|
|
454
|
+
|| (typeof globalThis !== 'undefined'
|
|
455
|
+
&& globalThis.__FLYOS_SHELL__ === true);
|
|
470
456
|
_url = signal('/', ...(ngDevMode ? [{ debugName: "_url" }] : /* istanbul ignore next */ []));
|
|
471
457
|
/**
|
|
472
458
|
* Current logical URL of the remote — `/signals/abc` etc.
|