feat: 完善本地书库与发布更新流程
Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>
This commit is contained in:
co-authored by
factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>
parent
de3e1d8a44
commit
b8c8d24107
@@ -3,7 +3,6 @@ const { app, session } = require('electron');
|
||||
const path = require('path');
|
||||
|
||||
app.setName('PeopleLib');
|
||||
app.commandLine.appendSwitch('ignore-certificate-errors');
|
||||
|
||||
const userDataDir = path.join(app.getPath('appData'), 'PeopleLib');
|
||||
app.setPath('userData', userDataDir);
|
||||
@@ -83,11 +82,6 @@ app.whenReady().then(async () => {
|
||||
if (p) {
|
||||
await session.defaultSession.setProxy({ proxyRules: p }).catch(() => {});
|
||||
}
|
||||
app.on('certificate-error', (event, wc, url, err, cert, cb) => {
|
||||
event.preventDefault();
|
||||
cb(true);
|
||||
});
|
||||
|
||||
const s = zlibAuth.getSession();
|
||||
const creds = zlibAuth.read();
|
||||
console.log('zlib creds:', creds && creds.email ? creds.email : '(无)');
|
||||
|
||||
Reference in New Issue
Block a user