diff --git a/js/privatebin.js b/js/privatebin.js index 135b66f..f6e94a1 100644 --- a/js/privatebin.js +++ b/js/privatebin.js @@ -508,7 +508,7 @@ jQuery.PrivateBin = (function($, sjcl, Base64, RawDeflate) { function compress(message) { return Base64.toBase64( RawDeflate.deflate( Base64.utob(message) ) ); - }; + } /** * decompress a message compressed with cryptToolcompress() @@ -522,7 +522,7 @@ jQuery.PrivateBin = (function($, sjcl, Base64, RawDeflate) { function decompress(data) { return Base64.btou( RawDeflate.inflate( Base64.fromBase64(data) ) ); - }; + } /** * compress, then encrypt message with given key and password @@ -804,7 +804,7 @@ jQuery.PrivateBin = (function($, sjcl, Base64, RawDeflate) { // redirect to home page window.location.href = currentLocation; } - }; + } /** * reload the page @@ -1014,7 +1014,7 @@ jQuery.PrivateBin = (function($, sjcl, Base64, RawDeflate) { // show notification $element.removeClass('hidden'); - }; + } /** * display a status message @@ -1220,7 +1220,7 @@ jQuery.PrivateBin = (function($, sjcl, Base64, RawDeflate) { { window.location.href = $shortenButton.data('shortener') + encodeURIComponent($pasteUrl.attr('href')); - }; + } /** * Forces opening the paste if the link does not do this automatically. @@ -1239,7 +1239,7 @@ jQuery.PrivateBin = (function($, sjcl, Base64, RawDeflate) { // if so we need to load link by reloading the current site window.location.reload(true); } - }; + } /** * creates a notification after a successfull paste upload @@ -1379,7 +1379,7 @@ jQuery.PrivateBin = (function($, sjcl, Base64, RawDeflate) { $passwordModal.modal('hide'); PasteDecrypter.run(); - }; + } /** * ask the user for the password and set it @@ -1495,7 +1495,7 @@ jQuery.PrivateBin = (function($, sjcl, Base64, RawDeflate) { // prevent the textarea to lose focus event.preventDefault(); } - }; + } /** * view the Editor tab @@ -1524,7 +1524,7 @@ jQuery.PrivateBin = (function($, sjcl, Base64, RawDeflate) { if (typeof event !== 'undefined') { event.preventDefault(); } - }; + } /** * view the preview tab @@ -1553,7 +1553,7 @@ jQuery.PrivateBin = (function($, sjcl, Base64, RawDeflate) { if (typeof event !== 'undefined') { event.preventDefault(); } - }; + } /** * get the state of the preview @@ -1740,7 +1740,7 @@ jQuery.PrivateBin = (function($, sjcl, Base64, RawDeflate) { $prettyPrint.css('word-break', 'normal'); $prettyPrint.removeClass('prettyprint'); } - }; + } /** * displays the paste @@ -1769,7 +1769,7 @@ jQuery.PrivateBin = (function($, sjcl, Base64, RawDeflate) { $prettyMessage.removeClass('hidden'); break; } - }; + } /** * sets the format in which the text is shown @@ -2124,7 +2124,7 @@ jQuery.PrivateBin = (function($, sjcl, Base64, RawDeflate) { // cache jQuery elements $commentTail = Model.getTemplate('commenttail'); - }; + } /** * open the comment entry when clicking the "Reply" button of a comment @@ -2153,7 +2153,7 @@ jQuery.PrivateBin = (function($, sjcl, Base64, RawDeflate) { $replyMessage.focus(); event.preventDefault(); - }; + } /** * custom handler for displaying notifications in own status message area @@ -2427,7 +2427,7 @@ jQuery.PrivateBin = (function($, sjcl, Base64, RawDeflate) { pasteExpiration = target.data('expiration'); event.preventDefault(); - }; + } /** * set the format on bootstrap templates in dropdown @@ -2453,7 +2453,7 @@ jQuery.PrivateBin = (function($, sjcl, Base64, RawDeflate) { } event.preventDefault(); - }; + } /** * when "burn after reading" is checked, disable discussion @@ -2473,7 +2473,7 @@ jQuery.PrivateBin = (function($, sjcl, Base64, RawDeflate) { } else { $openDiscussionOption.removeClass('buttondisabled'); } - }; + } /** * when discussion is checked, disable "burn after reading" @@ -2493,7 +2493,7 @@ jQuery.PrivateBin = (function($, sjcl, Base64, RawDeflate) { } else { $burnAfterReadingOption.removeClass('buttondisabled'); } - }; + } /** * return raw text @@ -2528,7 +2528,7 @@ jQuery.PrivateBin = (function($, sjcl, Base64, RawDeflate) { } newDoc.write('
' + DOMPurify.sanitize(paste) + '