Skip to content

Commit

Permalink
refactor: rename main to search
Browse files Browse the repository at this point in the history
  • Loading branch information
oliverschwendener committed Dec 11, 2024
1 parent 67a9848 commit 10b6652
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/main/Core/BrowserWindow/BrowserWindowModule.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import type { EventSubscriber } from "@Core/EventSubscriber";
import type { SettingsManager } from "@Core/SettingsManager";
import type { UeliCommand, UeliCommandInvokedEvent } from "@Core/UeliCommand";
import type { OperatingSystem, SearchResultItemAction } from "@common/Core";
import type { BrowserWindow, IpcMain } from "electron";
import { BrowserWindow, type IpcMain } from "electron";
import { join } from "path";
import { NavigateToActionHandler } from "./ActionHandler";
import { AppIconFilePathResolver } from "./AppIconFilePathResolver";
Expand Down Expand Up @@ -92,11 +92,11 @@ export class BrowserWindowModule {
await BrowserWindowModule.loadFileOrUrl(
browserWindow,
dependencyRegistry.get("EnvironmentVariableProvider"),
"main.html",
"search.html",
);

const settingsWindow = new BrowserWindow({
show: false,
show: true,
});

await BrowserWindowModule.loadFileOrUrl(
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/main.html → src/renderer/search.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,6 @@
</head>
<body style="margin: 0; padding: 0">
<div id="react-app"></div>
<script type="module" src="/main.tsx"></script>
<script type="module" src="/search.tsx"></script>
</body>
</html>
File renamed without changes.
2 changes: 1 addition & 1 deletion vite.config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export default defineConfig(({ command }) => {
build: {
rollupOptions: {
input: {
main: join(rendererRoot, "main.html"),
search: join(rendererRoot, "search.html"),
settings: join(rendererRoot, "settings.html"),
},
},
Expand Down

0 comments on commit 10b6652

Please sign in to comment.