feat: Support browser and chrome styles for mv2 popups
This commit is contained in:
@@ -123,6 +123,8 @@ export interface OptionsEntrypoint extends BaseEntrypoint {
|
||||
type: 'options';
|
||||
options: {
|
||||
openInTab?: boolean;
|
||||
browserStyle?: boolean;
|
||||
chromeStyle?: boolean;
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@@ -214,7 +214,11 @@ function addEntrypoints(
|
||||
if (options) {
|
||||
const page = getEntrypointBundlePath(options, config.outDir, '.html');
|
||||
manifest.options_ui = {
|
||||
...options.options,
|
||||
open_in_tab: options.options.openInTab,
|
||||
browser_style:
|
||||
config.browser === 'firefox' ? options.options.browserStyle : undefined,
|
||||
chrome_style:
|
||||
config.browser === 'chromium' ? options.options.chromeStyle : undefined,
|
||||
page,
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user