diy-template-components 0.2.46 → 0.2.48

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/build/index.js CHANGED
@@ -2,15 +2,15 @@
2
2
 
3
3
 
4
4
 
5
- function ___$insertStyle(css) {
6
- if (!css || typeof window === 'undefined') {
7
- return;
8
- }
9
- const style = document.createElement('style');
10
- style.setAttribute('type', 'text/css');
11
- style.innerHTML = css;
12
- document.head.appendChild(style);
13
- return css;
5
+ function ___$insertStyle(css) {
6
+ if (!css || !window) {
7
+ return;
8
+ }
9
+ const style = document.createElement('style');
10
+ style.setAttribute('type', 'text/css');
11
+ style.innerHTML = css;
12
+ document.head.appendChild(style);
13
+ return css;
14
14
  }
15
15
 
16
16
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -1172,7 +1172,7 @@ const NextImageRenderer = ({
1172
1172
  };
1173
1173
  const NextImage = require('next/image').default;
1174
1174
  return /*#__PURE__*/React__default["default"].createElement(NextImage, _extends({
1175
- priority: sectionIndex === '0' ? true : false,
1175
+ priority: sectionIndex == '0' ? true : false,
1176
1176
  loader: imageLoader,
1177
1177
  src: src,
1178
1178
  layout: 'fill',