Skip to content

Commit 875e1ff

Browse files
authored
Merge pull request #16 from openSVM/copilot/fix-15
Fix "Cannot find module 'electron-is-dev'" error in production Linux build
2 parents be73488 + f1a2036 commit 875e1ff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

public/electron.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
const { app, BrowserWindow, Menu, shell, ipcMain } = require('electron');
22
const path = require('path');
3-
const isDev = require('electron-is-dev');
3+
const isDev = !app.isPackaged;
44

55
// Keep a global reference of the window object
66
let mainWindow;

0 commit comments

Comments
 (0)