@botonic/react 0.27.1 → 0.27.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.
|
@@ -8,7 +8,7 @@ const staticAsset = path => {
|
|
|
8
8
|
if ((0, exports.isURL)(path))
|
|
9
9
|
return path; // Webpack 5 >= fully resolves absolute path to assets
|
|
10
10
|
const scriptBaseURL = document
|
|
11
|
-
.querySelector('script[src
|
|
11
|
+
.querySelector('script[src*="webchat.botonic.js"]')
|
|
12
12
|
.getAttribute('src');
|
|
13
13
|
const scriptName = scriptBaseURL.split('/').pop();
|
|
14
14
|
const basePath = scriptBaseURL.replace('/' + scriptName, '/');
|
|
@@ -5,7 +5,7 @@ export const staticAsset = path => {
|
|
|
5
5
|
if (isURL(path))
|
|
6
6
|
return path; // Webpack 5 >= fully resolves absolute path to assets
|
|
7
7
|
const scriptBaseURL = document
|
|
8
|
-
.querySelector('script[src
|
|
8
|
+
.querySelector('script[src*="webchat.botonic.js"]')
|
|
9
9
|
.getAttribute('src');
|
|
10
10
|
const scriptName = scriptBaseURL.split('/').pop();
|
|
11
11
|
const basePath = scriptBaseURL.replace('/' + scriptName, '/');
|
package/package.json
CHANGED
package/src/util/environment.js
CHANGED
|
@@ -5,7 +5,7 @@ export const staticAsset = path => {
|
|
|
5
5
|
try {
|
|
6
6
|
if (isURL(path)) return path // Webpack 5 >= fully resolves absolute path to assets
|
|
7
7
|
const scriptBaseURL = document
|
|
8
|
-
.querySelector('script[src
|
|
8
|
+
.querySelector('script[src*="webchat.botonic.js"]')
|
|
9
9
|
.getAttribute('src')
|
|
10
10
|
const scriptName = scriptBaseURL.split('/').pop()
|
|
11
11
|
const basePath = scriptBaseURL.replace('/' + scriptName, '/')
|