Skip to content

Commit aa72c33

Browse files
authored
webclipper: handle default case in listener (streetwriters#7058)
Signed-off-by: 01zulfi <85733202+01zulfi@users.noreply.github.com>
1 parent 69504a1 commit aa72c33

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

.commitlintrc.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const authors = readFileSync("AUTHORS", "utf-8");
1010
const isAuthor = authors.includes(`<${authorEmail}>`);
1111

1212
const SCOPES = [
13-
// for full list of scopes + details see: https://github.com/streetwriters/notesnook-private/blob/master/CONTRIBUTING.md#commit-guidelines
13+
// for full list of scopes + details see: https://github.com/streetwriters/notesnook/blob/master/CONTRIBUTING.md#commit-guidelines
1414

1515
"mobile",
1616
"web",
@@ -36,7 +36,8 @@ const SCOPES = [
3636
"global",
3737
"docs",
3838
"themebuilder",
39-
"intl"
39+
"intl",
40+
"webclipper"
4041
];
4142

4243
module.exports = {

extensions/web-clipper/src/content-scripts/all.ts

+2
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,8 @@ function attachMessagePort() {
7575
height: document.body.clientHeight,
7676
width: document.body.clientWidth
7777
};
78+
default:
79+
return false;
7880
}
7981
});
8082
}

0 commit comments

Comments
 (0)