diff --git a/da/index.html b/da/index.html index 1a5d9c8..5dc37f0 100644 --- a/da/index.html +++ b/da/index.html @@ -31,7 +31,7 @@ vil være mistænkte for børnemisbrug.
- +

Lær mere om ChatControllen og hvorfor det er en dårlig idé, i vores interaktive ChatControl film ude til venstre.

diff --git a/en/index.html b/en/index.html index d7bf81a..eb3b206 100644 --- a/en/index.html +++ b/en/index.html @@ -32,7 +32,7 @@ will be treated as suspects for child abuse.

- +

Learn more about Chat Control and why it is a bad idea by watching our interactive film on the left. diff --git a/img/chatapp.svg b/img/chatapp.svg index e7fa152..ad287f3 100644 --- a/img/chatapp.svg +++ b/img/chatapp.svg @@ -69,12 +69,7 @@ const typing_speed = 50; var conversation_count = 0; var current_dialog = null; -var current_language = "da"; -if(location.protocol.startsWith('http')) { // avoid X-origin errors - if(parent.location.href.match(/\ben\b/)) { - current_language = 'en'; - } -} // else: Just stick to danish +var current_language = new URLSearchParams(location.search).get('lang') ?? 'da'; var current_dialog_fn = null;