@blueking/bk-weweb 0.0.36-beta.18 → 0.0.36-beta.19
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.
- package/dist/index.esm.js +3 -2
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -1541,11 +1541,12 @@ var SandBox = class {
|
|
|
1541
1541
|
const windowDescriptorSet = /* @__PURE__ */ new Set();
|
|
1542
1542
|
const rawWindow = window;
|
|
1543
1543
|
this.rawWindow = rawWindow;
|
|
1544
|
-
|
|
1544
|
+
const rawDocument = window.rawDocument || document;
|
|
1545
|
+
this.rawDocument = createProxyDocument(rawDocument, app);
|
|
1545
1546
|
const fakeWindow = /* @__PURE__ */ Object.create({});
|
|
1546
1547
|
fakeWindow.__BK_WEWEB_APP_KEY__ = app.appCacheKey;
|
|
1547
1548
|
fakeWindow.__POWERED_BY_BK_WEWEB__ = true;
|
|
1548
|
-
fakeWindow.rawDocument =
|
|
1549
|
+
fakeWindow.rawDocument = rawDocument;
|
|
1549
1550
|
fakeWindow.rawWindow = rawWindow;
|
|
1550
1551
|
fakeWindow.__proto__ = Window;
|
|
1551
1552
|
this.fakeWindow = fakeWindow;
|