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.
This commit is contained in:
Teodor Dermendjiev
2023-02-14 09:05:41 +02:00
committed by GitHub
parent dcf6a365cd
commit 9179ff861d

View File

@@ -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 {