diff --git a/js/privatebin.js b/js/privatebin.js index 9122e835..93ea2489 100644 --- a/js/privatebin.js +++ b/js/privatebin.js @@ -4817,10 +4817,6 @@ jQuery.PrivateBin = (function($, RawDeflate) { // initialize other modules/"classes" Alert.init(); - if (!InitialCheck.init()) { - // something major is wrong, stop right away - return; - } Model.init(); AttachmentViewer.init(); DiscussionViewer.init(); @@ -4831,6 +4827,10 @@ jQuery.PrivateBin = (function($, RawDeflate) { TopNav.init(); UiHelper.init(); z = (await zlib); + if (!InitialCheck.init()) { + // something major is wrong, stop right away + return; + } // check whether existing paste needs to be shown try { diff --git a/js/test/Alert.js b/js/test/Alert.js index 8f79f7e6..dfaf3535 100644 --- a/js/test/Alert.js +++ b/js/test/Alert.js @@ -3,10 +3,6 @@ var common = require('../common'); describe('Alert', function () { describe('showStatus', function () { - before(function () { - cleanup(); - }); - jsc.property( 'shows a status message', jsc.array(common.jscAlnumString()), diff --git a/tpl/bootstrap.php b/tpl/bootstrap.php index 545fdfb9..711c11ab 100644 --- a/tpl/bootstrap.php +++ b/tpl/bootstrap.php @@ -71,7 +71,7 @@ if ($MARKDOWN): endif; ?> - + diff --git a/tpl/page.php b/tpl/page.php index 18e0e2e8..233b6931 100644 --- a/tpl/page.php +++ b/tpl/page.php @@ -49,7 +49,7 @@ if ($MARKDOWN): endif; ?> - +