Explorar o código

Add explanation

Ref https://github.com/PrivateBin/PrivateBin/pull/297#issuecomment-379586428
rugk %!s(int64=8) %!d(string=hai) anos
pai
achega
3b90020559
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      js/test/I18n.js

+ 2 - 0
js/test/I18n.js

@@ -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,