diff --git a/src/includes/head.pug b/src/includes/head.pug index a96c22ee6b2756a93af62ffe5f0e7cca108db04e..10367632b5d39d3d4447039c3021f6b9eefe57b3 100644 --- a/src/includes/head.pug +++ b/src/includes/head.pug @@ -20,7 +20,7 @@ head title: 'Please update your browser.', html: 'Please either update your Edge browser to the last version' + - '(you will find the last update here: <a href="//sweetalert2.github.io">https://www.microsoft.com/en-us/edge</a>)' + + '(you will find the last update here: <a href="https://www.microsoft.com/en-us/edge" target="_blank">https://www.microsoft.com/en-us/edge</a>)' + ' or switch to another browser (Chrome / Safari / Firefox)', showCloseButton: true, showCancelButton: true, diff --git a/www/index.html b/www/index.html index 86f5d60d7f07c807bea25d7483b2aa20041941da..721b862920188ef229fe18240cbadf387b296f6d 100644 --- a/www/index.html +++ b/www/index.html @@ -16,7 +16,7 @@ title: 'Please update your browser.', html: 'Please either update your Edge browser to the last version' + - '(you will find the last update here: <a href="https://www.microsoft.com/en-us/edge">https://www.microsoft.com/en-us/edge</a>)' + + '(you will find the last update here: <a href="https://www.microsoft.com/en-us/edge" target="_blank">https://www.microsoft.com/en-us/edge</a>)' + ' or switch to another browser (Chrome / Safari / Firefox)', showCloseButton: true, showCancelButton: true, @@ -24,22 +24,22 @@ icon: 'warning', confirmButtonText: 'Close now' }) - } - }); - - //Language given in translation - const langs = ['fr', 'en', 'it']; - const defLang = 'en'; + } else { + //Language given in translation + const langs = ['fr', 'en', 'it']; + const defLang = 'en'; - //Get the favorite language of the user's navigator - const userLangs = (navigator.languages || [navigator.language]).map( - function (a) { return a.split('-').shift() } - ); - userLangs.push(defLang); - const selectedLang = userLangs.find(function(lang) { return langs.indexOf(lang) !== -1 }); + //Get the favorite language of the user's navigator + const userLangs = (navigator.languages || [navigator.language]).map( + function (a) { return a.split('-').shift() } + ); + userLangs.push(defLang); + const selectedLang = userLangs.find(function(lang) { return langs.indexOf(lang) !== -1 }); - //Redirection to the appropriate index.html - document.location.replace(selectedLang); + //Redirection to the appropriate index.html + document.location.replace(selectedLang); + } + }); </script> </body> </html>