mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-03-14 08:26:13 +01:00
This commit is contained in:
parent
7cbf14a42f
commit
69a795b99b
8 changed files with 46 additions and 44 deletions
|
|
@ -1,19 +1,6 @@
|
|||
/// #if !BROWSER
|
||||
import {ipcRenderer} from "electron";
|
||||
/// #endif
|
||||
import {Dialog} from "../../dialog";
|
||||
import {isMobile} from "../../util/functions";
|
||||
import {fetchPost} from "../../util/fetch";
|
||||
import {Constants} from "../../constants";
|
||||
|
||||
export const setProxy = () => {
|
||||
/// #if !BROWSER
|
||||
ipcRenderer.send(Constants.SIYUAN_CMD, {
|
||||
cmd: "setProxy",
|
||||
proxyURL: `${window.siyuan.config.system.networkProxy.scheme}://${window.siyuan.config.system.networkProxy.host}:${window.siyuan.config.system.networkProxy.port}`
|
||||
});
|
||||
/// #endif
|
||||
};
|
||||
|
||||
export const setAccessAuthCode = () => {
|
||||
const dialog = new Dialog({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue