mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-03-09 15:40:26 +00:00
feat: adding background to item
This commit is contained in:
parent
f6072eeb5c
commit
1f2f269736
20 changed files with 77 additions and 98 deletions
|
@ -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();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue