|
11 | 11 |
|
12 | 12 | import 'threads/register' |
13 | 13 |
|
14 | | -import { WindowHandler, _windowHandler, setIsQuitting } from './utils/main/windowManager' |
15 | 14 | import { BrowserWindow, app, protocol, session } from 'electron' |
16 | | -import { resolve } from 'path' |
| 15 | +import { WindowHandler, _windowHandler, setIsQuitting } from './utils/main/windowManager' |
| 16 | +import { getExtensionHostChannel, registerIpcChannels } from '@/utils/main/ipc' |
| 17 | +import { loadPreferences, setInitialPreferences, shouldWatchFileChanges } from './utils/main/db/preferences' |
| 18 | +import { migrateThemes, setupDefaultThemes, setupSystemThemes } from './utils/main/themes/preferences' |
| 19 | +import { setupScanTask, setupScrapeTask } from '@/utils/main/scheduler/index' |
17 | 20 |
|
18 | 21 | import { createFavoritesPlaylist } from './utils/main/db' |
19 | | -import { loadPreferences, setInitialPreferences, shouldWatchFileChanges } from './utils/main/db/preferences' |
| 22 | +import { createProtocol } from 'vue-cli-plugin-electron-builder/lib' |
| 23 | +import { exit } from 'process' |
20 | 24 | import { loadSelectiveArrayPreference } from './utils/main/db/preferences' |
21 | 25 | import { logger } from './utils/main/logger/index' |
22 | | -import { migrateThemes, setupDefaultThemes, setupSystemThemes } from './utils/main/themes/preferences' |
23 | | -import { getExtensionHostChannel, registerIpcChannels } from '@/utils/main/ipc' |
24 | 26 | import { oauthHandler } from '@/utils/main/oauth/handler' |
25 | | -import { setupScanTask, setupScrapeTask } from '@/utils/main/scheduler/index' |
| 27 | +import { resolve } from 'path' |
26 | 28 | import { setupUpdateCheckTask } from '@/utils/main/scheduler/index' |
27 | | -import { exit } from 'process' |
28 | | -import pie from 'puppeteer-in-electron' |
29 | | -import { createProtocol } from 'vue-cli-plugin-electron-builder/lib' |
30 | 29 |
|
31 | 30 | if (process.defaultApp) { |
32 | 31 | if (process.argv.length >= 2) { |
@@ -58,7 +57,6 @@ if (isDevelopment) { |
58 | 57 |
|
59 | 58 | overrideConsole() |
60 | 59 | _windowHandler.setHardwareAcceleration() |
61 | | -pie.initialize(app) |
62 | 60 |
|
63 | 61 | process.on('uncaughtException', (err) => { |
64 | 62 | console.error(err) |
|
0 commit comments