diff --git a/app/internal_packages/print/lib/print-window.es6 b/app/internal_packages/print/lib/print-window.es6 index fcd42b74a..bb20c0e02 100644 --- a/app/internal_packages/print/lib/print-window.es6 +++ b/app/internal_packages/print/lib/print-window.es6 @@ -9,6 +9,9 @@ export default class PrintWindow { // This script will create the print prompt when loaded. We can also call // print directly from this process, but inside print.js we can make sure to // call window.print() after we've cleaned up the dom for printing + const tmp = app.getPath('temp'); + const tmpMessagesPath = path.join(tmp, 'print.messages.js'); + const scriptPath = path.join(__dirname, '..', 'static', 'print.js'); const stylesPath = path.join(__dirname, '..', 'static', 'print-styles.css'); const participantsHtml = participants @@ -20,6 +23,7 @@ export default class PrintWindow { const content = ` + ${styleTags} @@ -40,15 +44,13 @@ export default class PrintWindow { ${htmlContent} - + `; - this.tmpFile = path.join(app.getPath('temp'), 'print.html'); + this.tmpFile = path.join(tmp, 'print.html'); this.browserWin = new BrowserWindow({ width: 800, height: 600, @@ -57,6 +59,7 @@ export default class PrintWindow { nodeIntegration: false, }, }); + fs.writeFileSync(tmpMessagesPath, `window.printMessages = ${printMessages}`); fs.writeFileSync(this.tmpFile, content); } diff --git a/app/static/components/tutorial-overlay.less b/app/static/components/tutorial-overlay.less index 83c30535f..f89532928 100644 --- a/app/static/components/tutorial-overlay.less +++ b/app/static/components/tutorial-overlay.less @@ -48,10 +48,6 @@ tutorial-tip-background.visible { opacity: 1; } -body { - background: #000; -} - .tutorial-tip.visible:after { pointer-events: none; position: absolute;