Skip to content

Commit 4b02677

Browse files
committed
Use arrow function basically
1 parent 7c0a6b4 commit 4b02677

1 file changed

Lines changed: 3 additions & 7 deletions

File tree

webextensions/edge/content-main.js

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,8 @@
11
const originalPrint = window.print.bind(window);
2-
window.print = function ()
3-
{
2+
window.print = () => {
43
console.log('overloaded window.print');
54
window.postMessage({ type: 'FROM_PRINT_CANCELER_CONTENT_SCRIPT_MAIN' });
6-
if (originalPrint)
7-
{
8-
setTimeout(function() {
9-
originalPrint();
10-
}, 200);
5+
if (originalPrint) {
6+
setTimeout(originalPrint, 200);
117
}
128
};

0 commit comments

Comments
 (0)