mirror of
https://github.com/PrivateBin/PrivateBin.git
synced 2024-10-01 01:26:10 -04:00
Add explanation
Ref https://github.com/PrivateBin/PrivateBin/pull/297#issuecomment-379586428
This commit is contained in:
parent
cb6a6200b9
commit
3b90020559
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user