Added: clipboard image handler for picgo-core

This commit is contained in:
Molunerfinn
2018-12-20 17:23:03 +08:00
parent 8ff7d15f8d
commit 405548426a
5 changed files with 96 additions and 1 deletions

View File

@@ -84,8 +84,9 @@ class Uploader {
upload () {
const win = BrowserWindow.fromWebContents(this.webContents)
const picgo = new PicGo(CONFIG_PATH)
console.log(picgo.pluginLoader.getList())
picgo.config.debug = true
// for picgo-core
picgo.config.PICGO_ENV = 'GUI'
let input = this.img
picgo.helper.beforeUploadPlugins.register('renameFn', {