/
githubmirror
/
Motrix
Обзор
Документация
Войти
/
githubmirror
/
Motrix
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
src/main/index.js
26 строк
603 B
Dr_rOot
refactor: electron remote
23 апр 2021, 10:12
23 апр 2021, 10:12
3116c53
Код
Авторство
О чём код?
import { app } from 'electron' import is from 'electron-is' import { initialize } from '@electron/remote/main' import Launcher from './Launcher' /** * initialize the main-process side of the remote module */ initialize() process.env.ELECTRON_DISABLE_SECURITY_WARNINGS = 'true' if (process.env.NODE_ENV !== 'development') { global.__static = require('path').join(__dirname, '/static').replace(/\\/g, '\\\\') } /** * Fix Windows notification func * appId defined in .electron-vue/webpack.main.config.js */ if (is.windows()) { app.setAppUserModelId(appId) } global.launcher = new Launcher()