@kokimoki/app 1.4.5 → 1.4.6
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/kokimoki-client.js +3 -3
- package/dist/kokimoki.min.js +4 -4
- package/dist/kokimoki.min.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
package/dist/kokimoki-client.js
CHANGED
|
@@ -54,7 +54,7 @@ export class KokimokiClient extends EventEmitter {
|
|
|
54
54
|
}
|
|
55
55
|
}, 5000);
|
|
56
56
|
// Listen for devtools messages
|
|
57
|
-
if (window.
|
|
57
|
+
if (window.parent && window.self !== window.parent) {
|
|
58
58
|
window.addEventListener("message", (e) => {
|
|
59
59
|
console.log(`[KM TOOLS] ${e.data}`);
|
|
60
60
|
if (e.data === "km:clearStorage") {
|
|
@@ -117,7 +117,7 @@ export class KokimokiClient extends EventEmitter {
|
|
|
117
117
|
return await this._connectPromise;
|
|
118
118
|
}
|
|
119
119
|
// Detect devtools
|
|
120
|
-
if (window.
|
|
120
|
+
if (window.parent && window.self !== window.parent) {
|
|
121
121
|
await new Promise((resolve) => {
|
|
122
122
|
/* // Wait up to 500ms for parent to respond
|
|
123
123
|
const timeout = setTimeout(() => {
|
|
@@ -134,7 +134,7 @@ export class KokimokiClient extends EventEmitter {
|
|
|
134
134
|
resolve();
|
|
135
135
|
};
|
|
136
136
|
window.addEventListener("message", onMessage);
|
|
137
|
-
window.
|
|
137
|
+
window.parent.postMessage({ appId: this.appId }, "*");
|
|
138
138
|
});
|
|
139
139
|
}
|
|
140
140
|
// Set up the WebSocket connection
|
package/dist/kokimoki.min.js
CHANGED
|
@@ -634,7 +634,7 @@ function eventTargetAgnosticAddListener(emitter, name, listener, flags) {
|
|
|
634
634
|
var eventsExports = events.exports;
|
|
635
635
|
var EventEmitter$1 = /*@__PURE__*/getDefaultExportFromCjs(eventsExports);
|
|
636
636
|
|
|
637
|
-
const KOKIMOKI_APP_VERSION = "1.4.
|
|
637
|
+
const KOKIMOKI_APP_VERSION = "1.4.6";
|
|
638
638
|
|
|
639
639
|
/**
|
|
640
640
|
* Utility module to work with key-value stores.
|
|
@@ -12267,7 +12267,7 @@ class KokimokiClient extends EventEmitter$1 {
|
|
|
12267
12267
|
}
|
|
12268
12268
|
}, 5000);
|
|
12269
12269
|
// Listen for devtools messages
|
|
12270
|
-
if (window.
|
|
12270
|
+
if (window.parent && window.self !== window.parent) {
|
|
12271
12271
|
window.addEventListener("message", (e) => {
|
|
12272
12272
|
console.log(`[KM TOOLS] ${e.data}`);
|
|
12273
12273
|
if (e.data === "km:clearStorage") {
|
|
@@ -12330,7 +12330,7 @@ class KokimokiClient extends EventEmitter$1 {
|
|
|
12330
12330
|
return await this._connectPromise;
|
|
12331
12331
|
}
|
|
12332
12332
|
// Detect devtools
|
|
12333
|
-
if (window.
|
|
12333
|
+
if (window.parent && window.self !== window.parent) {
|
|
12334
12334
|
await new Promise((resolve) => {
|
|
12335
12335
|
/* // Wait up to 500ms for parent to respond
|
|
12336
12336
|
const timeout = setTimeout(() => {
|
|
@@ -12347,7 +12347,7 @@ class KokimokiClient extends EventEmitter$1 {
|
|
|
12347
12347
|
resolve();
|
|
12348
12348
|
};
|
|
12349
12349
|
window.addEventListener("message", onMessage);
|
|
12350
|
-
window.
|
|
12350
|
+
window.parent.postMessage({ appId: this.appId }, "*");
|
|
12351
12351
|
});
|
|
12352
12352
|
}
|
|
12353
12353
|
// Set up the WebSocket connection
|