glitch-javascript-sdk 1.0.1 → 1.0.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/dist/cjs/index.js +5 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/config/Config.d.ts +1 -1
- package/dist/esm/index.js +5 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/package.json +1 -1
- package/src/config/Config.ts +5 -1
package/dist/index.d.ts
CHANGED
|
@@ -39,7 +39,7 @@ declare class Config {
|
|
|
39
39
|
*/
|
|
40
40
|
static setCommunity(community: Record<string, any>): void;
|
|
41
41
|
/**
|
|
42
|
-
* Sets the root level domain so data can accessed across
|
|
42
|
+
* Sets the root level domain so data can be accessed across
|
|
43
43
|
* multiple subdomains
|
|
44
44
|
*
|
|
45
45
|
* @param domain The domain ie: example.com
|
package/package.json
CHANGED
package/src/config/Config.ts
CHANGED
|
@@ -78,12 +78,16 @@ class Config {
|
|
|
78
78
|
}
|
|
79
79
|
|
|
80
80
|
/**
|
|
81
|
-
* Sets the root level domain so data can accessed across
|
|
81
|
+
* Sets the root level domain so data can be accessed across
|
|
82
82
|
* multiple subdomains
|
|
83
83
|
*
|
|
84
84
|
* @param domain The domain ie: example.com
|
|
85
85
|
*/
|
|
86
86
|
public static setRootDomain(domain: string) {
|
|
87
|
+
if (!domain) {
|
|
88
|
+
console.error("setRootDomain: domain is undefined or null");
|
|
89
|
+
return;
|
|
90
|
+
}
|
|
87
91
|
|
|
88
92
|
const parts = domain.split('.');
|
|
89
93
|
|