Skip to content

Commit

Permalink
fix(filelink): Add check hasOwnProperty to loop
Browse files Browse the repository at this point in the history
  • Loading branch information
pcholuj committed Feb 12, 2019
1 parent d862c7f commit c3e930f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/lib/filelink.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1182,6 +1182,10 @@ export class Filelink {

let toTest = Array.isArray(this.source) ? this.source : [this.source];
for (let i in toTest) {
if (!toTest.hasOwnProperty(i)) {
continue;
}

if (toTest[i].indexOf('src:') === 0 || toTest[i].indexOf('http') === 0) {
return true;
}
Expand Down

0 comments on commit c3e930f

Please sign in to comment.