mirror of
https://github.com/Ionaru/easy-markdown-editor
synced 2025-07-25 19:04:29 -06:00
Increase timeout of error message to 10s
This commit is contained in:
parent
cd7c9b8d4d
commit
0558fb0d68
@ -1981,11 +1981,13 @@ EasyMDE.prototype.uploadImage = function (file, onSuccess, onError) {
|
|||||||
};
|
};
|
||||||
|
|
||||||
function onErrorSup(errorMessage) {
|
function onErrorSup(errorMessage) {
|
||||||
// show error on status bar and reset after 1000ms
|
// show error on status bar and reset after 10000ms
|
||||||
self.updateStatusBar('upload-image', errorMessage);
|
self.updateStatusBar('upload-image', errorMessage);
|
||||||
|
|
||||||
setTimeout(function () {
|
setTimeout(function () {
|
||||||
self.updateStatusBar('upload-image', self.options.imageTexts.sbInit);
|
self.updateStatusBar('upload-image', self.options.imageTexts.sbInit);
|
||||||
}, 1000);
|
}, 10000);
|
||||||
|
|
||||||
// run custom error handler
|
// run custom error handler
|
||||||
if (onError && typeof onError === 'function') {
|
if (onError && typeof onError === 'function') {
|
||||||
onError(errorMessage);
|
onError(errorMessage);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user