@moveo-ai/web-client 0.83.1 → 0.83.2-true.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/index.html CHANGED
@@ -15,16 +15,14 @@
15
15
  const widgetId = urlParams.get('widgetId');
16
16
  const version = urlParams.get('version');
17
17
 
18
- // Dynamically load the script
18
+ const defaultScript = 'iframe.min.js?5a5222f2a44b11345c82';
19
+ const versionPattern = /^v\d+$/;
19
20
  const script = document.createElement('script');
20
- const versionPattern = /^v\d+$/; // Matches v1, v2, etc.
21
21
  script.src =
22
22
  !versionPattern.test(version) || version === 'v1'
23
- ? `iframe.min.js?c20c35be15d3957459b9` : `iframe.min.js?c20c35be15d3957459b9`.replace(
24
- 'iframe.min.js',
25
- `iframe.${version}.min.js`
26
- )
27
- ;
23
+ ? defaultScript
24
+ : defaultScript.replace('iframe.min.js', `iframe.${version}.min.js`);
25
+
28
26
  script.onload = function () {
29
27
  if (widgetId) {
30
28
  MoveoAI.init(widgetId).catch((error) => {
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  *
3
- * @moveo-ai/web-client v0.83.1
3
+ * @moveo-ai/web-client v0.83.2-true.2
4
4
  * Copyright (c) Moveo.ai (TM)
5
5
  *
6
6
  */
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  *
3
- * @moveo-ai/web-client v0.83.1
3
+ * @moveo-ai/web-client v0.83.2-true.2
4
4
  * Copyright (c) Moveo.ai (TM)
5
5
  *
6
6
  */