react-hook-notification
Advanced tools
Comparing version 3.3.3 to 3.3.4
@@ -34,5 +34,5 @@ "use strict"; | ||
createElement() { | ||
const element = document.createElement('div'); | ||
const element = document === null || document === void 0 ? void 0 : document.createElement('div'); | ||
element.setAttribute('id', 'rhn-container'); | ||
document.body.appendChild(element); | ||
document === null || document === void 0 ? void 0 : document.body.appendChild(element); | ||
} | ||
@@ -50,3 +50,3 @@ static getInstance() { | ||
var _a; | ||
(_a = document.getElementById('rhn-container')) === null || _a === void 0 ? void 0 : _a.remove(); | ||
(_a = document === null || document === void 0 ? void 0 : document.getElementById('rhn-container')) === null || _a === void 0 ? void 0 : _a.remove(); | ||
} | ||
@@ -59,3 +59,3 @@ render(component) { | ||
this.createElement(); | ||
react_dom_1.default.render(react_1.default.createElement(react_1.StrictMode, null, this.Component && react_1.default.createElement(this.Component, null)), document.getElementById('rhn-container')); | ||
react_dom_1.default.render(react_1.default.createElement(react_1.StrictMode, null, this.Component && react_1.default.createElement(this.Component, null)), document === null || document === void 0 ? void 0 : document.getElementById('rhn-container')); | ||
} | ||
@@ -62,0 +62,0 @@ } |
@@ -5,3 +5,3 @@ "use strict"; | ||
const defineAnimationSize = () => { | ||
const windowWidth = window.innerWidth; | ||
const windowWidth = (window === null || window === void 0 ? void 0 : window.innerWidth) || 0; | ||
const windowIsLarger = windowWidth > 640; | ||
@@ -8,0 +8,0 @@ return windowIsLarger ? 380 : windowWidth; |
{ | ||
"version": "3.3.3", | ||
"version": "3.3.4", | ||
"license": "MIT", | ||
@@ -4,0 +4,0 @@ "main": "dist/main/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
67808