mirror of
https://github.com/PrivateBin/PrivateBin.git
synced 2026-03-05 13:30:32 -05:00
improve error reporting
This commit is contained in:
@@ -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;
|
||||
}
|
||||
);
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user