mirror of
https://github.com/Kuingsmile/PicList.git
synced 2026-06-02 17:49:46 +08:00
Added: picgo-core-ipc & fixed dynamic require bug in picgo
This commit is contained in:
@@ -4,10 +4,13 @@ import {
|
||||
BrowserWindow,
|
||||
ipcMain
|
||||
} from 'electron'
|
||||
import PicGo from 'picgo'
|
||||
import path from 'path'
|
||||
import fecha from 'fecha'
|
||||
|
||||
// eslint-disable-next-line
|
||||
const requireFunc = typeof __webpack_require__ === 'function' ? __non_webpack_require__ : require
|
||||
const PicGo = requireFunc('picgo')
|
||||
|
||||
const renameURL = process.env.NODE_ENV === 'development' ? `http://localhost:9080/#rename-page` : `file://${__dirname}/index.html#rename-page`
|
||||
|
||||
const createRenameWindow = () => {
|
||||
|
||||
Reference in New Issue
Block a user