@saasquatch/component-environment 1.0.4-1 → 1.0.5-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.js +2 -10
- package/dist/index.mjs +2 -10
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -87,12 +87,6 @@ function getEnvironmentSDK() {
|
|
|
87
87
|
widgetIdent: window["widgetIdent"]
|
|
88
88
|
};
|
|
89
89
|
}
|
|
90
|
-
if (window["SquatchIOS"]) {
|
|
91
|
-
return {
|
|
92
|
-
type: "SquatchIOS",
|
|
93
|
-
widgetIdent: window["widgetIdent"]
|
|
94
|
-
};
|
|
95
|
-
}
|
|
96
90
|
if (window["SquatchPortal"]) {
|
|
97
91
|
return {
|
|
98
92
|
type: "SquatchPortal",
|
|
@@ -465,10 +459,8 @@ var userContextListenerForLocale = new import_dom_context2.ContextListener({
|
|
|
465
459
|
if (next) {
|
|
466
460
|
debug5("User context changed, refetching locale");
|
|
467
461
|
const locale = await fetchLocale();
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
newLocale = locale || defaultLocale;
|
|
471
|
-
}
|
|
462
|
+
debug5(`New value fetched from GraphQL [${locale}]`);
|
|
463
|
+
newLocale = locale || defaultLocale;
|
|
472
464
|
} else {
|
|
473
465
|
newLocale = defaultLocale;
|
|
474
466
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -38,12 +38,6 @@ function getEnvironmentSDK() {
|
|
|
38
38
|
widgetIdent: window["widgetIdent"]
|
|
39
39
|
};
|
|
40
40
|
}
|
|
41
|
-
if (window["SquatchIOS"]) {
|
|
42
|
-
return {
|
|
43
|
-
type: "SquatchIOS",
|
|
44
|
-
widgetIdent: window["widgetIdent"]
|
|
45
|
-
};
|
|
46
|
-
}
|
|
47
41
|
if (window["SquatchPortal"]) {
|
|
48
42
|
return {
|
|
49
43
|
type: "SquatchPortal",
|
|
@@ -416,10 +410,8 @@ var userContextListenerForLocale = new ContextListener({
|
|
|
416
410
|
if (next) {
|
|
417
411
|
debug5("User context changed, refetching locale");
|
|
418
412
|
const locale = await fetchLocale();
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
newLocale = locale || defaultLocale;
|
|
422
|
-
}
|
|
413
|
+
debug5(`New value fetched from GraphQL [${locale}]`);
|
|
414
|
+
newLocale = locale || defaultLocale;
|
|
423
415
|
} else {
|
|
424
416
|
newLocale = defaultLocale;
|
|
425
417
|
}
|