mirror of
https://github.com/PrivateBin/PrivateBin.git
synced 2025-11-29 18:46:53 -05:00
improve error reporting
This commit is contained in:
parent
b8037d869c
commit
d40dac4825
1 changed files with 10 additions and 3 deletions
|
|
@ -50,7 +50,11 @@ describe('Check', function () {
|
|||
result2 = isSecureContext === (document.getElementById('insecurecontextnotice').className === 'hidden'),
|
||||
result3 = (document.getElementById('oldnotice').className !== 'hidden');
|
||||
clean();
|
||||
return result1 && result2 && result3;
|
||||
if (result1 && result2 && result3) {
|
||||
return true;
|
||||
}
|
||||
console.log(result1, result2, result3);
|
||||
return false;
|
||||
}
|
||||
);
|
||||
|
||||
|
|
@ -74,9 +78,12 @@ describe('Check', function () {
|
|||
const result1 = Legacy.Check.getInit() && Legacy.Check.getStatus(),
|
||||
result2 = secureProtocol === (document.getElementById('httpnotice').className === 'hidden');
|
||||
clean();
|
||||
return result1 && result2;
|
||||
if (result1 && result2) {
|
||||
return true;
|
||||
}
|
||||
console.log(result1, result2);
|
||||
return false;
|
||||
}
|
||||
);
|
||||
});
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue