diff options
Diffstat (limited to 'src/ipcMain')
-rw-r--r-- | src/ipcMain/index.ts | 6 | ||||
-rw-r--r-- | src/ipcMain/updater/git.ts | 2 | ||||
-rw-r--r-- | src/ipcMain/updater/http.ts | 4 |
3 files changed, 6 insertions, 6 deletions
diff --git a/src/ipcMain/index.ts b/src/ipcMain/index.ts index 535c005..ba85eeb 100644 --- a/src/ipcMain/index.ts +++ b/src/ipcMain/index.ts @@ -18,6 +18,9 @@ import "./updater"; +import { debounce } from "@utils/debounce"; +import IpcEvents from "@utils/IpcEvents"; +import { Queue } from "@utils/Queue"; import { BrowserWindow, desktopCapturer, ipcMain, shell } from "electron"; import { mkdirSync, readFileSync, watch } from "fs"; import { open, readFile, writeFile } from "fs/promises"; @@ -25,9 +28,6 @@ import { join } from "path"; import monacoHtml from "~fileContent/../components/monacoWin.html;base64"; -import { debounce } from "../utils/debounce"; -import IpcEvents from "../utils/IpcEvents"; -import { Queue } from "../utils/Queue"; import { ALLOWED_PROTOCOLS, QUICKCSS_PATH, SETTINGS_DIR, SETTINGS_FILE } from "./constants"; mkdirSync(SETTINGS_DIR, { recursive: true }); diff --git a/src/ipcMain/updater/git.ts b/src/ipcMain/updater/git.ts index 7e4176a..07c94cb 100644 --- a/src/ipcMain/updater/git.ts +++ b/src/ipcMain/updater/git.ts @@ -16,12 +16,12 @@ * along with this program. If not, see <https://www.gnu.org/licenses/>. */ +import IpcEvents from "@utils/IpcEvents"; import { execFile as cpExecFile } from "child_process"; import { ipcMain } from "electron"; import { join } from "path"; import { promisify } from "util"; -import IpcEvents from "../../utils/IpcEvents"; import { calculateHashes, serializeErrors } from "./common"; const VENCORD_SRC_DIR = join(__dirname, ".."); diff --git a/src/ipcMain/updater/http.ts b/src/ipcMain/updater/http.ts index 523340f..902d644 100644 --- a/src/ipcMain/updater/http.ts +++ b/src/ipcMain/updater/http.ts @@ -16,6 +16,8 @@ * along with this program. If not, see <https://www.gnu.org/licenses/>. */ +import { VENCORD_USER_AGENT } from "@utils/constants"; +import IpcEvents from "@utils/IpcEvents"; import { ipcMain } from "electron"; import { writeFile } from "fs/promises"; import { join } from "path"; @@ -23,8 +25,6 @@ import { join } from "path"; import gitHash from "~git-hash"; import gitRemote from "~git-remote"; -import { VENCORD_USER_AGENT } from "../../utils/constants"; -import IpcEvents from "../../utils/IpcEvents"; import { get } from "../simpleGet"; import { calculateHashes, serializeErrors } from "./common"; |