From 42a648cc3bc261ab973fd06b16cb3d661c8fa0c5 Mon Sep 17 00:00:00 2001 From: Kane Zhu Date: Tue, 3 Jan 2017 12:47:05 +0800 Subject: [PATCH] Fix the issue that infinitely checking duration of video if the dynamical video tag can not be created. --- src/validate.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/validate.js b/src/validate.js index 100a3f71..513c8c3b 100644 --- a/src/validate.js +++ b/src/validate.js @@ -470,6 +470,7 @@ ngFileUpload.service('UploadValidate', ['UploadDataUrl', '$q', '$timeout', funct var count = 0; function checkLoadError() { + count++; $timeout(function () { if (el[0].parentNode) { if (el[0].duration) {