forked from evolus/pencil
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathapp.js
23 lines (18 loc) · 844 Bytes
/
app.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
const {clipboard, remote, nativeImage, shell, ipcRenderer, webFrame} = require("electron");
const _ = require("lodash");
const rimraf = require("rimraf");
const QP = require("q");
const tmp = require("tmp");
const path = require("path");
const moment = require("moment");
const fs = require("fs");
const os = require("os");
const jimp = require("jimp");
const pkgInfo = require("./package.json");
const QueueHandler = require("./pencil-core/common/QueueHandler");
const sharedUtil = require("./pencil-core/common/shared-util");
const dialog = remote.dialog;
tmp.setGracefulCleanup();
// webFrame.registerURLSchemeAsPrivileged("file");
// webFrame.registerURLSchemeAsSecure("file");
// webFrame.registerURLSchemeAsBypassingCSP("file");