We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7c0a6b4 commit 4b02677Copy full SHA for 4b02677
1 file changed
webextensions/edge/content-main.js
@@ -1,12 +1,8 @@
1
const originalPrint = window.print.bind(window);
2
-window.print = function ()
3
-{
+window.print = () => {
4
console.log('overloaded window.print');
5
window.postMessage({ type: 'FROM_PRINT_CANCELER_CONTENT_SCRIPT_MAIN' });
6
- if (originalPrint)
7
- {
8
- setTimeout(function() {
9
- originalPrint();
10
- }, 200);
+ if (originalPrint) {
+ setTimeout(originalPrint, 200);
11
}
12
};
0 commit comments