From 1ebf4cc15c15555a8ab48f4bebadd449af1c1215 Mon Sep 17 00:00:00 2001 From: Michael Tijhuis Date: Fri, 14 Apr 2017 21:31:37 +0200 Subject: [PATCH] Make compatible with electron remote --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 59f0e12..14a8e25 100644 --- a/index.js +++ b/index.js @@ -4,7 +4,7 @@ const _ = require('lodash') const path = require('path') const async = require('async') const electron = require('electron') -const BrowserWindow = electron.BrowserWindow +const BrowserWindow = electron.BrowserWindow || electron.remote.BrowserWindow; const ipc = electron.ipcMain // One animation at a time