diff --git a/js/base-x-3.0.5.1.js b/js/base-x-3.0.5.1.js index 9a8eb72..2a69d36 100644 --- a/js/base-x-3.0.5.1.js +++ b/js/base-x-3.0.5.1.js @@ -6,7 +6,9 @@ // Distributed under the MIT software license, see the accompanying // file LICENSE or http://www.opensource.org/licenses/mit-license.php. -var baseX = function base (ALPHABET) { +(function(){ +'use strict'; +this.baseX = function base (ALPHABET) { if (ALPHABET.length >= 255) throw new TypeError('Alphabet too long') const BASE_MAP = new Uint8Array(256) @@ -146,3 +148,4 @@ var baseX = function base (ALPHABET) { decode: decode } } +}).call(this); \ No newline at end of file diff --git a/js/common.js b/js/common.js index be1cf37..615042a 100644 --- a/js/common.js +++ b/js/common.js @@ -18,6 +18,7 @@ global.prettyPrint = window.PR.prettyPrint; global.prettyPrintOne = window.PR.prettyPrintOne; global.showdown = require('./showdown-1.8.6'); global.DOMPurify = require('./purify-1.0.7'); +global.baseX = require('./base-x-3.0.5.1').baseX; require('./bootstrap-3.3.7'); require('./privatebin'); diff --git a/tpl/bootstrap.php b/tpl/bootstrap.php index d8419ff..04e85d6 100644 --- a/tpl/bootstrap.php +++ b/tpl/bootstrap.php @@ -60,7 +60,7 @@ else: - + @@ -77,7 +77,7 @@ if ($MARKDOWN): endif; ?> - + diff --git a/tpl/page.php b/tpl/page.php index 849d3ed..708e276 100644 --- a/tpl/page.php +++ b/tpl/page.php @@ -39,7 +39,7 @@ else: - + - +