mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-02-24 16:14:01 +08:00
Remove the menu from the top of the Print window #958
This commit is contained in:
parent
1232fdae79
commit
f9131ea24c
2 changed files with 3 additions and 1 deletions
|
@ -30,7 +30,7 @@ export default class PrintWindow {
|
|||
</head>
|
||||
<body>
|
||||
<div id="print-header">
|
||||
<div onClick="continueAndPrint()" id="print-button">
|
||||
<div id="print-button">
|
||||
Print
|
||||
</div>
|
||||
<div class="logo-wrapper">
|
||||
|
@ -59,6 +59,7 @@ export default class PrintWindow {
|
|||
nodeIntegration: false,
|
||||
},
|
||||
});
|
||||
this.browserWin.setMenu(null);
|
||||
fs.writeFileSync(tmpMessagesPath, `window.printMessages = ${printMessages}`);
|
||||
fs.writeFileSync(this.tmpFile, content);
|
||||
}
|
||||
|
|
|
@ -40,5 +40,6 @@
|
|||
removeScrollClasses();
|
||||
rebuildMessages(messageNodes, window.printMessages);
|
||||
|
||||
document.getElementById('print-button').addEventListener('click', continueAndPrint);
|
||||
window.continueAndPrint = continueAndPrint;
|
||||
})();
|
||||
|
|
Loading…
Reference in a new issue