feat: adding background to item

This commit is contained in:
Hydra 2024-05-03 19:51:13 +01:00
parent f6072eeb5c
commit 1f2f269736
No known key found for this signature in database
20 changed files with 77 additions and 98 deletions

View file

@ -1,4 +1,4 @@
import { app, BrowserWindow } from "electron";
import { app, BrowserWindow, net, protocol } from "electron";
import { init } from "@sentry/electron/main";
import i18n from "i18next";
import path from "node:path";
@ -52,6 +52,10 @@ if (process.defaultApp) {
app.whenReady().then(() => {
electronApp.setAppUserModelId("site.hydralauncher.hydra");
protocol.handle("hydra", (request) =>
net.fetch("file://" + request.url.slice("hydra://".length))
);
dataSource.initialize().then(async () => {
await resolveDatabaseUpdates();