fix(ads): [PKG-ADS-05] preserve ownership and verify native browser lifecycle

This commit is contained in:
Harvey Zhao committed 2026-09-12 08:52:51 +08:00
1 parent fb1cfa701d
commit 29692d2815
22 files changed
+1060 -29

No files matched your search

+1 -1
View File
@@ -72,7 +72,7 @@ export function createSession(art: Host, option: Options, icons: Icons, utils: U
}
catch (error) { report(error) }
finally {
if (template.$ads === root)
if (root && template.$ads === root)
delete template.$ads
}
}