globalseo
Advanced tools
Comparing version 2.1.20 to 2.1.21
@@ -242,3 +242,3 @@ const { getTranslations, isBrowser } = require("./index.js"); | ||
// console.log("document.readyState", document.readyState) | ||
if (document.readyState == 'complete') { | ||
if (document.readyState == 'interactive' || document.readyState == 'complete') { | ||
// DOM is already loaded, run the code | ||
@@ -245,0 +245,0 @@ initTranslation(); |
@@ -791,2 +791,4 @@ const { isBrowser, getGlobalseoOptions, setGlobalseoOptions, setGlobalseoActiveLang, setIsTranslationInitialized, getIsTranslationInitialized, shouldTranslateInlineText, getGlobalseoActiveLang, DEFAULT_UNTRANSLATED_VALUE, MERGE_PREFIX } = require('./utils/configs.js'); | ||
try { | ||
console.log("GLOBALSEO initializing..."); | ||
if (!optsArgs?.originalLanguage) { | ||
@@ -793,0 +795,0 @@ console.error("GLOBALSEO: data-original-language is required, please add it to the script tag") |
{ | ||
"name": "globalseo", | ||
"version": "2.1.20", | ||
"version": "2.1.21", | ||
"description": "Translate your React.js or Next.js app with AI", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
466834
2882