Skip to content

Commit

Permalink
feat: platform label inside global context menu quit platform option
Browse files Browse the repository at this point in the history
  • Loading branch information
camc314 committed Mar 18, 2024
1 parent 7aa6ddd commit 882ff10
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,9 @@ async function setupPlatform(manifestSettings: CustomSettings | undefined): Prom
logger.info("Initializing platform");
const browser: BrowserInitConfig = {};

if (!isEmpty(customSettings?.browserProvider?.title)) {
browser.title = customSettings?.browserProvider?.title;
}
if (!isEmpty(customSettings?.browserProvider)) {
browser.defaultWindowOptions = await getDefaultWindowOptions(customSettings?.browserProvider);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import type { MenuEntry, PopupMenuStyles } from "./menu-shapes";
*/
export type BrowserProviderOptions = Pick<
BrowserInitConfig,
"defaultWindowOptions" | "defaultPageOptions" | "defaultViewOptions"
"defaultWindowOptions" | "defaultPageOptions" | "defaultViewOptions" | "title"
> & {
/**
* This setting lets you override the default workspace browser buttons and specify your own.
Expand Down

0 comments on commit 882ff10

Please sign in to comment.