From aa72c33aeaa552a907bf8ca43e766d6434672d02 Mon Sep 17 00:00:00 2001 From: 01zulfi <85733202+01zulfi@users.noreply.github.com> Date: Tue, 10 Dec 2024 09:57:23 +0500 Subject: [PATCH] webclipper: handle default case in listener (#7058) Signed-off-by: 01zulfi <85733202+01zulfi@users.noreply.github.com> --- .commitlintrc.js | 5 +++-- extensions/web-clipper/src/content-scripts/all.ts | 2 ++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.commitlintrc.js b/.commitlintrc.js index 2c5f3a922..b967a1940 100644 --- a/.commitlintrc.js +++ b/.commitlintrc.js @@ -10,7 +10,7 @@ const authors = readFileSync("AUTHORS", "utf-8"); const isAuthor = authors.includes(`<${authorEmail}>`); const SCOPES = [ - // for full list of scopes + details see: https://github.com/streetwriters/notesnook-private/blob/master/CONTRIBUTING.md#commit-guidelines + // for full list of scopes + details see: https://github.com/streetwriters/notesnook/blob/master/CONTRIBUTING.md#commit-guidelines "mobile", "web", @@ -36,7 +36,8 @@ const SCOPES = [ "global", "docs", "themebuilder", - "intl" + "intl", + "webclipper" ]; module.exports = { diff --git a/extensions/web-clipper/src/content-scripts/all.ts b/extensions/web-clipper/src/content-scripts/all.ts index c455a82cb..f0585f4c4 100644 --- a/extensions/web-clipper/src/content-scripts/all.ts +++ b/extensions/web-clipper/src/content-scripts/all.ts @@ -75,6 +75,8 @@ function attachMessagePort() { height: document.body.clientHeight, width: document.body.clientWidth }; + default: + return false; } }); }