mirror of
https://github.com/PrivateBin/PrivateBin.git
synced 2026-03-05 13:30:32 -05:00
test: guard due to test error (fatal memory crash)
Co-Authored-By: Copilot
This commit is contained in:
@@ -2012,8 +2012,11 @@ window.PrivateBin = (function() {
|
||||
*/
|
||||
me.init = function()
|
||||
{
|
||||
// hide "no javascript" error message
|
||||
document.getElementById('noscript').style.display = 'none';
|
||||
// hide "no javascript" error message (guard in test environments)
|
||||
const noscriptEl = document.getElementById('noscript');
|
||||
if (noscriptEl) {
|
||||
noscriptEl.style.display = 'none';
|
||||
}
|
||||
|
||||
// not a reset, but first set of the elements
|
||||
errorMessage = document.getElementById('errormessage');
|
||||
|
||||
Reference in New Issue
Block a user