Skip to content

Commit cbe6613

Browse files
committed
Remove needless callback
1 parent 0466422 commit cbe6613

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

webextensions/edge/content-isolated.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,10 @@ window.addEventListener('beforeprint', _event => {
44
const isPrintEnabled = window.isPrintEnabled;
55
window.isPrintEnabled = false;
66
if (!isPrintEnabled) {
7-
chrome.runtime.sendMessage({ type: 'deny' }, _response => {
8-
});
7+
chrome.runtime.sendMessage({ type: 'deny' });
98
}
109
else {
11-
chrome.runtime.sendMessage({ type: 'allow' }, _response => {
12-
});
10+
chrome.runtime.sendMessage({ type: 'allow' });
1311
}
1412
});
1513

0 commit comments

Comments
 (0)