mirror of
https://github.com/PrivateBin/PrivateBin.git
synced 2025-05-02 06:26:16 -04:00
remove alerts when missing showdown & prettify libraries, if the are missing it is intentionally done in the configuration, fixes #237
This commit is contained in:
parent
c2e060d464
commit
ddb1c550f5
3 changed files with 2 additions and 16 deletions
|
@ -2413,20 +2413,6 @@ jQuery.PrivateBin = (function($, RawDeflate) {
|
|||
$prettyMessage = $('#prettymessage');
|
||||
$prettyPrint = $('#prettyprint');
|
||||
|
||||
// check requirements
|
||||
if (typeof prettyPrintOne !== 'function') {
|
||||
Alert.showError([
|
||||
'The library %s is not available. This may cause display errors.',
|
||||
'pretty print'
|
||||
]);
|
||||
}
|
||||
if (typeof showdown !== 'object') {
|
||||
Alert.showError([
|
||||
'The library %s is not available. This may cause display errors.',
|
||||
'showdown'
|
||||
]);
|
||||
}
|
||||
|
||||
// get default option from template/HTML or fall back to set value
|
||||
format = Model.getFormatDefault() || format;
|
||||
text = '';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue