@spooky-sync/core 0.0.1-canary.29 → 0.0.1-canary.30
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.js +2 -1
- package/package.json +1 -1
- package/src/modules/devtools/index.ts +4 -1
package/dist/index.js
CHANGED
|
@@ -2194,7 +2194,7 @@ var DevToolsService = class {
|
|
|
2194
2194
|
}
|
|
2195
2195
|
exposeToWindow() {
|
|
2196
2196
|
if (typeof window !== "undefined") {
|
|
2197
|
-
window.
|
|
2197
|
+
window.__00__ = {
|
|
2198
2198
|
version: this.version,
|
|
2199
2199
|
getState: () => this.getState(),
|
|
2200
2200
|
clearHistory: () => {
|
|
@@ -2295,6 +2295,7 @@ var DevToolsService = class {
|
|
|
2295
2295
|
detected: true
|
|
2296
2296
|
}
|
|
2297
2297
|
}, "*");
|
|
2298
|
+
window.dispatchEvent(new CustomEvent("sp00ky:init"));
|
|
2298
2299
|
}
|
|
2299
2300
|
}
|
|
2300
2301
|
};
|
package/package.json
CHANGED
|
@@ -229,7 +229,7 @@ export class DevToolsService implements StreamUpdateReceiver {
|
|
|
229
229
|
|
|
230
230
|
private exposeToWindow() {
|
|
231
231
|
if (typeof window !== 'undefined') {
|
|
232
|
-
(window as any).
|
|
232
|
+
(window as any).__00__ = {
|
|
233
233
|
version: this.version,
|
|
234
234
|
getState: () => this.getState(),
|
|
235
235
|
clearHistory: () => {
|
|
@@ -359,6 +359,9 @@ export class DevToolsService implements StreamUpdateReceiver {
|
|
|
359
359
|
},
|
|
360
360
|
'*'
|
|
361
361
|
);
|
|
362
|
+
|
|
363
|
+
// Dispatch custom event so the devtools page-script can detect late initialization
|
|
364
|
+
window.dispatchEvent(new CustomEvent('sp00ky:init'));
|
|
362
365
|
}
|
|
363
366
|
}
|
|
364
367
|
}
|