@erickxavier/no-js 1.4.2 → 1.5.0
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/README.md +12 -1
- package/dist/cjs/no.js +5 -5
- package/dist/cjs/no.js.map +2 -2
- package/dist/esm/no.js +5 -5
- package/dist/esm/no.js.map +2 -2
- package/dist/iife/no.js +5 -5
- package/dist/iife/no.js.map +2 -2
- package/package.json +1 -1
- package/src/index.js +3 -1
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -90,6 +90,8 @@ const NoJS = {
|
|
|
90
90
|
|
|
91
91
|
async init(root) {
|
|
92
92
|
if (typeof document === "undefined") return;
|
|
93
|
+
if (NoJS._initialized) return;
|
|
94
|
+
NoJS._initialized = true;
|
|
93
95
|
root = root || document.body;
|
|
94
96
|
_log("Initializing...");
|
|
95
97
|
|
|
@@ -216,7 +218,7 @@ const NoJS = {
|
|
|
216
218
|
resolve,
|
|
217
219
|
|
|
218
220
|
// Version
|
|
219
|
-
version: "1.
|
|
221
|
+
version: "1.5.0",
|
|
220
222
|
};
|
|
221
223
|
|
|
222
224
|
export default NoJS;
|