fix(web-clipper): clipping whole page not working

This commit is contained in:
Elian Doran
2026-01-24 11:53:26 +02:00
parent 5d07a079ef
commit 59f2fc8d03
2 changed files with 2 additions and 5 deletions

View File

@@ -1,4 +1,5 @@
import { getBaseUrl, getPageLocationOrigin, randomString } from "../../utils.js";
import Readability from "../../lib/Readability.js";
export default defineContentScript({
matches: [

View File

@@ -25,7 +25,7 @@
* @param {HTMLDocument} doc The document to parse.
* @param {Object} options The options object.
*/
function Readability(doc, options) {
export default function Readability(doc, options) {
// In some older versions, people passed a URI as the first argument. Cope:
if (options && options.documentElement) {
doc = options;
@@ -2277,7 +2277,3 @@ Readability.prototype = {
};
}
};
if (typeof module === "object") {
module.exports = Readability;
}