A fully open source & end-to-end encrypted note taking alternative to Evernote.
TypeScript asp-net-coredotnet-coreelectronfosshacktoberfestnote-managmentnote-takingnote-taking-appnotebooknotesnotes-appopen-sourceopensourceprivacyproductivityreactreact-nativereactjsself-hosted
clipper(web): add fallback height & width for web clip(#3766)
Muhammad Ali3873758fe5b7
diff --git a/extensions/web-clipper/src/content-scripts/all.ts b/extensions/web-clipper/src/content-scripts/all.tsindex 1a214a0a9..c455a82cb 100644--- a/extensions/web-clipper/src/content-scripts/all.ts+++ b/extensions/web-clipper/src/content-scripts/all.ts@@ -55,8 +55,16 @@ function attachMessagePort() {message.area === "full-page" &&(message.mode === "complete" || message.mode === "screenshot");return {- height: sizeable ? document.body.clientHeight : 0,- width: sizeable ? document.body.clientWidth : 0,+ height: sizeable+ ? document.body.clientHeight ||+ document.firstElementChild?.scrollHeight ||+ 1080+ : 0,+ width: sizeable+ ? document.body.clientWidth ||+ document.firstElementChild?.scrollWidth ||+ 1920+ : 0,data: await clip(request)};}diff --git a/packages/clipper/package.json b/packages/clipper/package.jsonindex 32164a7b8..a5ae77f10 100644--- a/packages/clipper/package.json+++ b/packages/clipper/package.json@@ -25,7 +25,8 @@"scripts": {"build": "tsc && yarn webpack -c webpack.config.js","test": "playwright test",- "postinstall": "patch-package"+ "postinstall": "patch-package",+ "watch": "tsc --watch"},"bugs": {"url": "https://github.com/streetwriters/notesnook/issues"