Skip to content

Commit

Permalink
Fix #1269
Browse files Browse the repository at this point in the history
  • Loading branch information
AmauriC committed Aug 10, 2024
1 parent b58ebc9 commit 77b19ef
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tarteaucitron.js
Original file line number Diff line number Diff line change
Expand Up @@ -2077,7 +2077,7 @@ var tarteaucitron = {
}

// get the html lang
if (document.documentElement.getAttribute("lang") !== undefined && document.documentElement.getAttribute("lang") !== null && documentElement.getAttribute("lang") !== "") {
if (document.documentElement.getAttribute("lang") !== undefined && document.documentElement.getAttribute("lang") !== null && document.documentElement.getAttribute("lang") !== "") {
if (availableLanguages.indexOf(document.documentElement.getAttribute("lang").substr(0, 2)) !== -1) {
return document.documentElement.getAttribute("lang").substr(0, 2);
}
Expand Down
2 changes: 1 addition & 1 deletion tarteaucitron.min.js

Large diffs are not rendered by default.

0 comments on commit 77b19ef

Please sign in to comment.