globalseo
Advanced tools
Comparing version 2.1.98 to 2.1.99
{ | ||
"name": "globalseo", | ||
"version": "2.1.98", | ||
"version": "2.1.99", | ||
"description": "Translate your React.js or Next.js app with AI", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -32,3 +32,3 @@ const { getGlobalseoActiveLang, getGlobalseoOptions } = require("../configs"); | ||
// use URL class | ||
const url = new URL(el[attr]); | ||
const url = new URL(attr == "srcset" ? `${window.location.origin}/${el.srcset.startsWith("/") ? el.slice(1) : el}` : el.src); | ||
url.hostname = originalWebsiteHostname; | ||
@@ -35,0 +35,0 @@ el[attr] = url.href; |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
561393