Created
December 14, 2018 05:46
-
-
Save ofonimefrancis/a1cea59fb7ef81166ce5d799ef664f31 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const path = require('path') | |
const {app, Menu, BrowserWindow, ipcMain } = require('electron') | |
const {readFileSync} = require('fs') | |
const fs = require('fs') | |
const listViewHtml = readFileSync(path.join(__dirname, '../components/listView.html'), 'utf-8') | |
ipcMain.on('listview', (event, arg) => { | |
event.returnValue = listViewHtml | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment