Skip to content

Commit

Permalink
support typo on data-original-lanugage
Browse files Browse the repository at this point in the history
  • Loading branch information
jemikanegara committed May 8, 2024
1 parent b333d40 commit 0e66bb0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ if (isBrowser()) {
const apiKey = window.weployScriptTag.getAttribute("data-weploy-key");

// defined languages so dont need extra fetch
const originalLangAttr = window.weployScriptTag.getAttribute("data-original-language");
const originalLangAttr = window.weployScriptTag.getAttribute("data-original-language") || window.weployScriptTag.getAttribute("data-original-lanugage");
const originalLang = (originalLangAttr || "").trim().toLowerCase();
const allowedLangAttr = window.weployScriptTag.getAttribute("data-allowed-languages");
const allowedLangs = (allowedLangAttr || "").trim().toLowerCase().split(",").filter(lang => !!lang).map(lang => lang.trim());
Expand Down

0 comments on commit 0e66bb0

Please sign in to comment.