Skip to content

Commit

Permalink
Merge pull request #1818 from videome/master
Browse files Browse the repository at this point in the history
Fix the issue that infinitely checking duration of video.
  • Loading branch information
danialfarid authored Mar 3, 2017
2 parents 12336a0 + 42a648c commit 0b40b94
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/validate.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 0b40b94

Please sign in to comment.