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() {
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) {
Object.defineProperty(navigator, key, {
value: undefined,