Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jemikanegara committed Dec 6, 2024
1 parent e935bb4 commit af839a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion replaceLinks.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const getUnprefixedPathname = require("./utils/translation-mode/getUnprefixedPat

function replaceLinks(window, {langParam, lang, translationMode, prefix, sourceOriginHostname}) {
// Select all anchor tags
const anchors = document.querySelectorAll('a:not(.globalseo-ignore-link)');
const anchors = window.document.querySelectorAll('a:not(.globalseo-ignore-link)');

// domain
const domain = window.location.hostname.split('.').slice(1).join('.');
Expand Down

0 comments on commit af839a2

Please sign in to comment.