@reset-framework/sdk 1.1.1 → 1.1.2
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/package.json +1 -1
- package/src/client.js +7 -5
package/package.json
CHANGED
package/src/client.js
CHANGED
|
@@ -718,15 +718,17 @@ function createNetApi(transport) {
|
|
|
718
718
|
}
|
|
719
719
|
|
|
720
720
|
function scheduleFrontendReadySignal(transport) {
|
|
721
|
-
|
|
721
|
+
const target = typeof globalThis === "object" ? globalThis.window : undefined
|
|
722
|
+
|
|
723
|
+
if (typeof target === "undefined") {
|
|
722
724
|
return
|
|
723
725
|
}
|
|
724
726
|
|
|
725
|
-
if (
|
|
727
|
+
if (target.__resetFrontendReadySignalScheduled) {
|
|
726
728
|
return
|
|
727
729
|
}
|
|
728
730
|
|
|
729
|
-
|
|
731
|
+
target.__resetFrontendReadySignalScheduled = true
|
|
730
732
|
|
|
731
733
|
queueMicrotask(() => {
|
|
732
734
|
if (!transport.isAvailable()) {
|
|
@@ -743,7 +745,7 @@ export function createResetClient(source) {
|
|
|
743
745
|
const app = createAppApi(transport)
|
|
744
746
|
const runtime = createRuntimeApi(transport)
|
|
745
747
|
const events = createEventApi(transport)
|
|
746
|
-
const
|
|
748
|
+
const windowApi = createWindowApi(transport)
|
|
747
749
|
const dialog = createDialogApi(transport)
|
|
748
750
|
const fs = createFsApi(transport)
|
|
749
751
|
const path = createPathApi(transport)
|
|
@@ -773,7 +775,7 @@ export function createResetClient(source) {
|
|
|
773
775
|
app,
|
|
774
776
|
runtime,
|
|
775
777
|
events,
|
|
776
|
-
window,
|
|
778
|
+
window: windowApi,
|
|
777
779
|
dialog,
|
|
778
780
|
fs,
|
|
779
781
|
path,
|