1
0
mirror of https://github.com/bitwarden/browser synced 2026-02-11 05:53:42 +00:00

rename minmimal-app to modal-app

This commit is contained in:
Anders Åberg
2024-10-28 18:16:57 +01:00
parent 6a4c482b65
commit 903cecba6f
2 changed files with 3 additions and 3 deletions

View File

@@ -205,7 +205,7 @@ export class TrayMain {
private async fakePopup() {
if (this.windowMain.win == null || this.windowMain.win.isDestroyed()) {
await this.windowMain.createWindow("minimal-app");
await this.windowMain.createWindow("modal-app");
return;
}

View File

@@ -197,7 +197,7 @@ export class WindowMain {
}
}
async createWindow(template: "full-app" | "minimal-app" = "full-app"): Promise<void> {
async createWindow(template: "full-app" | "modal-app" = "full-app"): Promise<void> {
this.windowStates[mainWindowSizeKey] = await this.getWindowState(
this.defaultWidth,
this.defaultHeight,
@@ -231,7 +231,7 @@ export class WindowMain {
},
});
if (template === "minimal-app") {
if (template === "modal-app") {
applyPopupModalStyles(this.win);
} else {
applyMainWindowStyles(this.win, this.windowStates[mainWindowSizeKey]);