@innovastudio/contentbox 1.6.72 → 1.6.73

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@innovastudio/contentbox",
3
3
  "type": "module",
4
- "version": "1.6.72",
4
+ "version": "1.6.73",
5
5
  "description": "",
6
6
  "main": "public/contentbox/contentbox.esm.js",
7
7
  "files": [
@@ -52,7 +52,7 @@
52
52
  "ws": "^8.13.0"
53
53
  },
54
54
  "dependencies": {
55
- "@innovastudio/contentbuilder": "^1.5.63",
55
+ "@innovastudio/contentbuilder": "^1.5.64",
56
56
  "js-beautify": "^1.14.0",
57
57
  "sortablejs": "^1.15.2"
58
58
  }
@@ -100971,10 +100971,21 @@ function injectAssets(url, waitFor, callback) {
100971
100971
  };
100972
100972
  document.body.appendChild(script);
100973
100973
  }
100974
+
100975
+ // Modified:
100974
100976
  function isMobile$1() {
100977
+ if (typeof window === "undefined") {
100978
+ // This means we're on the server, return false or handle appropriately
100979
+ return false;
100980
+ }
100975
100981
  return 'navigator' in window && window.navigator.userAgent.match(/(iPad)|(iPhone)|(iPod)|(Android)|(PlayBook)|(BB10)|(BlackBerry)|(Opera Mini)|(IEMobile)|(webOS)|(MeeGo)/i);
100976
100982
  }
100983
+ // Modified:
100977
100984
  function isTouch$1() {
100985
+ if (typeof document === "undefined") {
100986
+ // This means we're on the server, return false or handle appropriately
100987
+ return false;
100988
+ }
100978
100989
  return isMobile$1() !== null || document.createTouch !== undefined || 'ontouchstart' in window || 'onmsgesturechange' in window || navigator.msMaxTouchPoints;
100979
100990
  }
100980
100991
  function isFunction(f) {
@@ -102644,7 +102655,13 @@ class Slide {
102644
102655
  const version$3 = '3.2.0';
102645
102656
  const isMobile = isMobile$1();
102646
102657
  const isTouch = isTouch$1();
102647
- const html$2 = document.getElementsByTagName('html')[0];
102658
+
102659
+ // Modified:
102660
+ // let html = document.getElementsByTagName('html')[0];
102661
+ let html$2;
102662
+ if (typeof document === "undefined") ; else {
102663
+ html$2 = document.getElementsByTagName('html')[0];
102664
+ }
102648
102665
  const defaults$2 = {
102649
102666
  selector: '.glightbox',
102650
102667
  elements: null,