Fixed a bug that made the extension crash

This commit is contained in:
Yanderella! 2018-10-29 12:57:31 +01:00 committed by GitHub
parent 114a34c95d
commit 479716d464
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -29,6 +29,8 @@
// further reading:
// https://eloquentjavascript.net/05_higher_order.html
let nal = navigator.language;
function setDaytimeMessage () {
if (nal === 'it' || nal === 'it-CH') itaMessageSet(); //Italian
else if (nal === 'nl'|| nal === 'nl-BE') nlMessageSet(); //Dutch