Skip to content

Commit

Permalink
Merge pull request #34 from pal03377/master
Browse files Browse the repository at this point in the history
Search for media elements when document.readyState is "interactive" (fixes #29)
  • Loading branch information
vantezzen authored Nov 7, 2020
2 parents ab843f8 + def0adf commit 8599f98
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/content/lib/inspectMediaElements.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export default function inspectMediaElements(callback : Function) {
// A list of all elements we have already discovered
const inspectedElements : MediaElement[] = [];

if (document.readyState === "complete") {
if (document.readyState === "interactive" || document.readyState === "complete") {
// Search current elements
searchElements(inspectedElements, callback);
} else {
Expand Down

0 comments on commit 8599f98

Please sign in to comment.