Add missing return

This commit is contained in:
Pavel Djundik 2020-08-21 10:18:41 +03:00
parent 9e13694b21
commit 1e38262d69

View File

@ -131,6 +131,7 @@ function parseHtmlMedia($, preview, client) {
return new Promise((resolve, reject) => {
if (Helper.config.disableMediaPreview) {
reject();
return;
}
let foundMedia = false;