Skip to content

Commit

Permalink
fix: Corriger la gestion de Full30.
Browse files Browse the repository at this point in the history
  • Loading branch information
regseb committed Feb 1, 2020
1 parent 40c65ab commit 47bb0c6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 18 deletions.
2 changes: 1 addition & 1 deletion src/core/scraper/full30.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const action = async function (_url, doc) {
return null;
}

const subdoc = new DOMParser().parseFromString(noscript.textContent,
const subdoc = new DOMParser().parseFromString(noscript.innerHTML,
"text/html");
return subdoc.querySelector("video source").src;
};
Expand Down
4 changes: 2 additions & 2 deletions test/polyfill.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { URL } from "url";
import { JSDOM } from "jsdom";
import { browser } from "./polyfill/browser.js";
import { DOMParser } from "./polyfill/domparser.js";
import { fetch } from "./polyfill/fetch.js";

globalThis.URL = URL;
globalThis.fetch = fetch;
globalThis.browser = browser;
globalThis.DOMParser = DOMParser;
globalThis.DOMParser = new JSDOM().window.DOMParser;
15 changes: 0 additions & 15 deletions test/polyfill/domparser.js

This file was deleted.

0 comments on commit 47bb0c6

Please sign in to comment.