mftsccs-browser 2.0.18-beta → 2.0.19-beta
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.
|
@@ -24668,7 +24668,7 @@ function initConceptConnection() {
|
|
|
24668
24668
|
*/
|
|
24669
24669
|
function dispatchIdEvent(id, data = {}) {
|
|
24670
24670
|
// console.log('id event dispatched', id)
|
|
24671
|
-
if (serviceWorker) {
|
|
24671
|
+
if (serviceWorker || typeof window != undefined) {
|
|
24672
24672
|
// let event = new Event(`${id}`);
|
|
24673
24673
|
let event = new CustomEvent(`${id}`, data);
|
|
24674
24674
|
dispatchEvent(event);
|