Skip to content

Instantly share code, notes, and snippets.

@ofonimefrancis
Created December 14, 2018 05:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ofonimefrancis/a1cea59fb7ef81166ce5d799ef664f31 to your computer and use it in GitHub Desktop.
Save ofonimefrancis/a1cea59fb7ef81166ce5d799ef664f31 to your computer and use it in GitHub Desktop.
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