Changeset View
Changeset View
Standalone View
Standalone View
desktop/src/main.js
Show All 11 Lines | |||||
} from 'electron/main'; | } from 'electron/main'; | ||||
import fs from 'fs'; | import fs from 'fs'; | ||||
import path from 'path'; | import path from 'path'; | ||||
import { initAutoUpdate } from './auto-update.js'; | import { initAutoUpdate } from './auto-update.js'; | ||||
import { handleSquirrelEvent } from './handle-squirrel-event.js'; | import { handleSquirrelEvent } from './handle-squirrel-event.js'; | ||||
const isDev = process.env.ENV === 'dev'; | const isDev = process.env.ENV === 'dev'; | ||||
const url = isDev ? 'http://localhost/comm/' : 'https://web.comm.app'; | const url = isDev ? 'http://localhost:3000/comm/' : 'https://web.comm.app'; | ||||
const isMac = process.platform === 'darwin'; | const isMac = process.platform === 'darwin'; | ||||
const scrollbarCSS = fs.promises.readFile( | const scrollbarCSS = fs.promises.readFile( | ||||
path.resolve(__dirname, '../scrollbar.css'), | path.resolve(__dirname, '../scrollbar.css'), | ||||
'utf8', | 'utf8', | ||||
); | ); | ||||
const setApplicationMenu = () => { | const setApplicationMenu = () => { | ||||
▲ Show 20 Lines • Show All 260 Lines • Show Last 20 Lines |