globalseo
Advanced tools
Comparing version 2.2.8 to 2.2.9
@@ -102,6 +102,10 @@ const { isBrowser, getGlobalseoOptions, SPECIAL_API_KEYS } = require('./utils/configs.js'); | ||
createLanguageSelect(window, optsArgs).then(() => { | ||
if (nodes.length) startTranslationCycle(window, window.document.body, apiKey, debounceDuration).catch(console.log) | ||
if (nodes.length) startTranslationCycle(window, window.document.body, apiKey, debounceDuration) | ||
.catch(console.log) | ||
.finally(() => renderSelectorState(window)) | ||
}); | ||
} else { | ||
if (nodes.length) startTranslationCycle(window, window.document.body, apiKey, debounceDuration).catch(console.log) | ||
if (nodes.length) startTranslationCycle(window, window.document.body, apiKey, debounceDuration) | ||
.catch(console.log) | ||
.finally(() => renderSelectorState(window)) | ||
} | ||
@@ -108,0 +112,0 @@ }); |
{ | ||
"name": "globalseo", | ||
"version": "2.2.8", | ||
"version": "2.2.9", | ||
"description": "Translate your React.js or Next.js app with AI", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -100,3 +100,3 @@ const { getGlobalseoActiveLang, getGlobalseoOptions } = require("../configs"); | ||
|| (!delay && !window.isTranslationRunOnce) | ||
// || (window.activeSubdomain && window.translationCache?.[window.location.pathname]?.[window.activeSubdomain]) | ||
|| (window.activeSubdomain && window.translationCache?.[window.location.pathname]?.[window.activeSubdomain]) | ||
) { | ||
@@ -103,0 +103,0 @@ // console.log("RUN FIRST") |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
565507
3505