rugk 2018-04-09 14:13:18 +02:00
parent cb6a6200b9
commit 3b90020559
No known key found for this signature in database
GPG Key ID: 05D40A636AFAB34D

View File

@ -105,6 +105,8 @@ describe('I18n', function () {
function() { function() {
var clean = jsdom('', {url: 'https://privatebin.net/'}); var clean = jsdom('', {url: 'https://privatebin.net/'});
// when navigator.userLanguage is undefined and no default language
// is specified, it would throw an error
[ 'language', 'userLanguage' ].forEach(function (key) { [ 'language', 'userLanguage' ].forEach(function (key) {
Object.defineProperty(navigator, key, { Object.defineProperty(navigator, key, {
value: undefined, value: undefined,