From 9179ff861dcd72224ed79205406b328119784aa5 Mon Sep 17 00:00:00 2001 From: Teodor Dermendjiev Date: Tue, 14 Feb 2023 09:05:41 +0200 Subject: [PATCH] fix(ios): embedding sdk (#10211) Disable setting main window content When NS app is embedded main window should not be updated because it belongs to the parent app. --- packages/core/application/index.ios.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/core/application/index.ios.ts b/packages/core/application/index.ios.ts index 0e5a06fd3..3b2153ccd 100644 --- a/packages/core/application/index.ios.ts +++ b/packages/core/application/index.ios.ts @@ -247,9 +247,8 @@ export class iOSApplication implements iOSApplicationDefinition { cssFile: getCssFileName(), }); - // this._window will be undefined when NS app is embedded in a native one if (this._window) { - if (args.root !== null) { + if (args.root !== null && !NativeScriptEmbedder.sharedInstance().delegate) this.setWindowContent(args.root); } } else {