mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
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:
committed by
GitHub
parent
dcf6a365cd
commit
9179ff861d
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user