diff --git a/js/privatebin.js b/js/privatebin.js index 9122e83..93ea248 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 8f79f7e..dfaf353 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 545fdfb..711c11a 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 18e0e2e..233b693 100644 --- a/tpl/page.php +++ b/tpl/page.php @@ -49,7 +49,7 @@ if ($MARKDOWN): endif; ?> - +