Skip to content

Commit f1a2036

Browse files
Copilot0xrinegade
andcommitted
Fix electron-is-dev production build error by replacing with inline check
Co-authored-by: 0xrinegade <[email protected]>
1 parent b415301 commit f1a2036

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)