@deflectbot/deflect-sdk 1.1.0 → 1.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/.gitattributes +2 -2
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/src/index.ts +1 -1
package/.gitattributes
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
# Auto detect text files and perform LF normalization
|
|
2
|
-
* text=auto
|
|
1
|
+
# Auto detect text files and perform LF normalization
|
|
2
|
+
* text=auto
|
package/dist/index.js
CHANGED
|
@@ -36,7 +36,7 @@ class Deflect {
|
|
|
36
36
|
const extraArgs = Object.keys(window.Deflect.extraArgs || {})
|
|
37
37
|
.map((key) => `${encodeURIComponent(key)}=${encodeURIComponent(window.Deflect.extraArgs[key])}`)
|
|
38
38
|
.join("&");
|
|
39
|
-
const scriptUrl = `https://js.deflect.bot/main.js?
|
|
39
|
+
const scriptUrl = `https://js.deflect.bot/main.js?sitekey=${encodeURIComponent(window.Deflect.siteKey)}${extraArgs ? `&${extraArgs}` : ""}`;
|
|
40
40
|
return new Promise((resolve, reject) => {
|
|
41
41
|
const cachedScript = sessionStorage.getItem("deflect_script");
|
|
42
42
|
const lastFetchTime = localStorage.getItem("deflect_script_timestamp");
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -46,7 +46,7 @@ class Deflect {
|
|
|
46
46
|
)
|
|
47
47
|
.join("&");
|
|
48
48
|
|
|
49
|
-
const scriptUrl = `https://js.deflect.bot/main.js?
|
|
49
|
+
const scriptUrl = `https://js.deflect.bot/main.js?sitekey=${encodeURIComponent(
|
|
50
50
|
window.Deflect.siteKey
|
|
51
51
|
)}${extraArgs ? `&${extraArgs}` : ""}`;
|
|
52
52
|
|