Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.