@saasquatch/vanilla-components 1.2.4-21 → 1.2.4-22

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.
@@ -5,7 +5,7 @@
5
5
  var isSafari10 =
6
6
  window.navigator.userAgent.indexOf("Safari") > 0 &&
7
7
  window.navigator.userAgent.indexOf("Version/10") > 0;
8
- var scriptElm = doc.scripts.find((script) =>
8
+ var scriptElm = Array.from(doc.scripts).find((script) =>
9
9
  script.src.includes("widget-components")
10
10
  );
11
11
 
@@ -5,7 +5,7 @@
5
5
  var isSafari10 =
6
6
  window.navigator.userAgent.indexOf("Safari") > 0 &&
7
7
  window.navigator.userAgent.indexOf("Version/10") > 0;
8
- var scriptElm = doc.scripts.find((script) =>
8
+ var scriptElm = Array.from(doc.scripts).find((script) =>
9
9
  script.src.includes("widget-components")
10
10
  );
11
11
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@saasquatch/vanilla-components",
3
3
  "title": "Vanilla Components",
4
- "version": "1.2.4-21",
4
+ "version": "1.2.4-22",
5
5
  "description": "A minimal design library with components for referral and loyalty experiences.",
6
6
  "icon": "https://res.cloudinary.com/saasquatch/image/upload/v1652219900/squatch-assets/For_Vanilla.svg",
7
7
  "raisins": "docs/raisins.json",