@appkit/dek-plugin 0.16.0 → 0.18.0
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.es.js +3 -1
- package/dist/index.umd.js +3 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -144,7 +144,9 @@ function setState(integrationKey, key, value) {
|
|
|
144
144
|
`api:${integrationKey.toLowerCase()}`,
|
|
145
145
|
JSON.stringify(localData)
|
|
146
146
|
);
|
|
147
|
-
|
|
147
|
+
const ev = new Event("storage");
|
|
148
|
+
ev.key = `api:${integrationKey.toLowerCase()}`;
|
|
149
|
+
window.dispatchEvent(ev);
|
|
148
150
|
}
|
|
149
151
|
function getState(integrationKey, key) {
|
|
150
152
|
const localData = getStateRoot(integrationKey);
|
package/dist/index.umd.js
CHANGED
|
@@ -147,7 +147,9 @@ var __publicField = (obj, key, value) => {
|
|
|
147
147
|
`api:${integrationKey.toLowerCase()}`,
|
|
148
148
|
JSON.stringify(localData)
|
|
149
149
|
);
|
|
150
|
-
|
|
150
|
+
const ev = new Event("storage");
|
|
151
|
+
ev.key = `api:${integrationKey.toLowerCase()}`;
|
|
152
|
+
window.dispatchEvent(ev);
|
|
151
153
|
}
|
|
152
154
|
function getState(integrationKey, key) {
|
|
153
155
|
const localData = getStateRoot(integrationKey);
|