feat: update URL param for duck mode activation

Changed URL query parameter from 'duckmode' to 'lang=quack' to improve clarity and maintain consistency with other language parameter conventions. This update helps ensure better readability and uniformity across the application.
This commit is contained in:
Kumi 2024-09-25 07:51:34 +02:00
parent b1c616ea50
commit 0777f287e3
Signed by: kumi
GPG key ID: ECBCC9082395383F

View file

@ -24,7 +24,7 @@ function translateToDuckLanguage(node) {
}
}
// Translate if the "duckmode" parameter is present in the URL
if (window.location.search.includes('duckmode')) {
// Translate if the "lang=quack" parameter is present in the URL
if (window.location.search.includes('lang=quack')) {
document.body.childNodes.forEach(translateToDuckLanguage);
}