Merge pull request #3431 from dregad/js-syntax-error

Add missing `;` causing syntax error in js.php
This commit is contained in:
Gerrit Uitslag 2021-03-06 14:09:18 +01:00 committed by GitHub
commit 94e5059ec9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -228,12 +228,12 @@ var dw_behaviour = {
// successful check will not be repeated during session // successful check will not be repeated during session
$checkDiv.remove(); $checkDiv.remove();
sessionStorage.setItem('dw-security-check:' + DOKU_BASE, true); sessionStorage.setItem('dw-security-check:' + DOKU_BASE, true);
} };
img.onload = function () { img.onload = function () {
// check failed, display a warning message // check failed, display a warning message
$checkDiv.html(LANG.data_insecure); $checkDiv.html(LANG.data_insecure);
$checkDiv.addClass('error'); $checkDiv.addClass('error');
} };
img.src = $checkDiv.data('src') + '?t=' + Date.now(); img.src = $checkDiv.data('src') + '?t=' + Date.now();
} }
}; };