@rio-cloud/rio-uikit 0.16.2-beta.7 → 0.16.2-beta.8
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/lib/es/utils/colorScheme.js +2 -1
- package/lib/es/version.json +1 -1
- package/package.json +1 -1
- package/utils/colorScheme.js +2 -1
- package/version.json +1 -1
|
@@ -60,7 +60,8 @@ var readColorSchemeFromCookie = function readColorSchemeFromCookie() {
|
|
|
60
60
|
// This should be done by a RIO service like User Profile SPA using a theme switcher component from the uikit
|
|
61
61
|
// where this function is referenced
|
|
62
62
|
var writeColorSchemeToCookie = function writeColorSchemeToCookie(scheme) {
|
|
63
|
-
var
|
|
63
|
+
var _window;
|
|
64
|
+
var isDevEnv = (_window = window) === null || _window === void 0 ? void 0 : _window.location.host.startsWith('localhost');
|
|
64
65
|
var newCookieValues = encodeURIComponent(scheme);
|
|
65
66
|
var cookie = "".concat(COOKIE_NAME, "=").concat(newCookieValues, ";domain=").concat(isDevEnv ? 'localhost' : DOMAIN, ";expires=").concat(EXPIRATION_DATE, ";path=").concat(PATH);
|
|
66
67
|
console.log("writeColorSchemeToCookie: ".concat(cookie));
|
package/lib/es/version.json
CHANGED
package/package.json
CHANGED
package/utils/colorScheme.js
CHANGED
|
@@ -46,7 +46,8 @@ var readColorSchemeFromCookie = function readColorSchemeFromCookie() {
|
|
|
46
46
|
// This should be done by a RIO service like User Profile SPA using a theme switcher component from the uikit
|
|
47
47
|
// where this function is referenced
|
|
48
48
|
var writeColorSchemeToCookie = function writeColorSchemeToCookie(scheme) {
|
|
49
|
-
var
|
|
49
|
+
var _window;
|
|
50
|
+
var isDevEnv = (_window = window) === null || _window === void 0 ? void 0 : _window.location.host.startsWith('localhost');
|
|
50
51
|
var newCookieValues = encodeURIComponent(scheme);
|
|
51
52
|
var cookie = "".concat(COOKIE_NAME, "=").concat(newCookieValues, ";domain=").concat(isDevEnv ? 'localhost' : DOMAIN, ";expires=").concat(EXPIRATION_DATE, ";path=").concat(PATH);
|
|
52
53
|
console.log("writeColorSchemeToCookie: ".concat(cookie));
|
package/version.json
CHANGED