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:
El RIDO 2019-06-23 19:55:25 +02:00
parent c2e060d464
commit ddb1c550f5
No known key found for this signature in database
GPG key ID: 0F5C940A6BD81F92
3 changed files with 2 additions and 16 deletions

View file

@ -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 = '';