@team-monolith/pxt-core 0.1.0 → 0.1.2
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/built/pxt.js +2 -2
- package/built/pxtlib.js +2 -2
- package/built/target.js +2 -2
- package/built/web/main.js +2 -1
- package/built/web/pxtapp.js +2 -2
- package/built/web/pxtembed.js +2 -2
- package/built/web/pxtlib.js +2 -2
- package/built/web/pxtworker.js +2 -2
- package/package.json +1 -1
package/built/pxt.js
CHANGED
|
@@ -120947,7 +120947,7 @@ var pxt;
|
|
|
120947
120947
|
return matches ? decodeURIComponent(matches[1]) : undefined;
|
|
120948
120948
|
}
|
|
120949
120949
|
function getEnv() {
|
|
120950
|
-
return window.location.hostname
|
|
120950
|
+
return window.location.hostname === "localhost"
|
|
120951
120951
|
? "local"
|
|
120952
120952
|
: window.location.hostname.includes("dev")
|
|
120953
120953
|
? "dev"
|
|
@@ -120955,7 +120955,7 @@ var pxt;
|
|
|
120955
120955
|
}
|
|
120956
120956
|
codle.getEnv = getEnv;
|
|
120957
120957
|
function getCookieName(name) {
|
|
120958
|
-
const tenant = window.location.hostname.split(".")[
|
|
120958
|
+
const tenant = window.location.hostname.split(".")[1];
|
|
120959
120959
|
return `${name}_${tenant}_${getEnv()}`;
|
|
120960
120960
|
}
|
|
120961
120961
|
codle.getCookieName = getCookieName;
|
package/built/pxtlib.js
CHANGED
|
@@ -23261,7 +23261,7 @@ var pxt;
|
|
|
23261
23261
|
return matches ? decodeURIComponent(matches[1]) : undefined;
|
|
23262
23262
|
}
|
|
23263
23263
|
function getEnv() {
|
|
23264
|
-
return window.location.hostname
|
|
23264
|
+
return window.location.hostname === "localhost"
|
|
23265
23265
|
? "local"
|
|
23266
23266
|
: window.location.hostname.includes("dev")
|
|
23267
23267
|
? "dev"
|
|
@@ -23269,7 +23269,7 @@ var pxt;
|
|
|
23269
23269
|
}
|
|
23270
23270
|
codle.getEnv = getEnv;
|
|
23271
23271
|
function getCookieName(name) {
|
|
23272
|
-
const tenant = window.location.hostname.split(".")[
|
|
23272
|
+
const tenant = window.location.hostname.split(".")[1];
|
|
23273
23273
|
return `${name}_${tenant}_${getEnv()}`;
|
|
23274
23274
|
}
|
|
23275
23275
|
codle.getCookieName = getCookieName;
|