From 8896b2eae2142a7b516212f80cdaed5d43c32886 Mon Sep 17 00:00:00 2001 From: yflory Date: Mon, 20 Apr 2020 18:19:21 +0200 Subject: [PATCH] Fix mediatag preview --- www/common/inner/common-mediatag.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/www/common/inner/common-mediatag.js b/www/common/inner/common-mediatag.js index 40ae19059..3e1f2e75b 100644 --- a/www/common/inner/common-mediatag.js +++ b/www/common/inner/common-mediatag.js @@ -284,10 +284,12 @@ define([ 'data-crypto-key': key }); $inner.append(tag); - MediaTag(tag).on('error', function () { - locked = false; - $spinner.hide(); - UI.log(Messages.error); + setTimeout(function () { + MediaTag(tag).on('error', function () { + locked = false; + $spinner.hide(); + UI.log(Messages.error); + }); }); }