import path from 'path'; import fs from 'fs'; import { remote } from 'electron'; const { app, BrowserWindow } = remote; export default class PrintWindow { constructor({ subject, account, participants, styleTags, htmlContent, printMessages }) { // 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 scriptPath = path.join(__dirname, '..', 'static', 'print.js'); const stylesPath = path.join(__dirname, '..', 'static', 'print-styles.css'); const participantsHtml = participants .map(part => { return `