Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

webclipper: handle default case in listener (#7058)

01zulfiaa72c33aeaa5
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;
}
});
}