mirror of
https://github.com/cryptpad/cryptpad.git
synced 2026-09-12 19:49:59 +05:00
remove redundant code
This commit is contained in:
parent
d653b9fd59
commit
8e2ae8db3d
@ -128,18 +128,10 @@ define([
|
||||
return cancelBlock;
|
||||
};
|
||||
|
||||
var nativePrint = window.print;
|
||||
|
||||
var printFullContent = function () {
|
||||
setTimeout(function () { nativePrint(); }, 50);
|
||||
};
|
||||
|
||||
window.print = printFullContent;
|
||||
|
||||
window.addEventListener('keydown', function (e) {
|
||||
if ((e.ctrlKey || e.metaKey) && e.key.toLowerCase() === 'p') {
|
||||
e.preventDefault();
|
||||
printFullContent();
|
||||
window.print();
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user