Skip to content

Commit 573ef80

Browse files
committed
fix: Respect background type and persistent manifest options
1 parent 7abb577 commit 573ef80

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/utils/manifest.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,12 +132,12 @@ function addEntrypoints(
132132
const script = getEntrypointBundlePath(background, config.outDir, '.js');
133133
if (manifest.manifest_version === 3) {
134134
manifest.background = {
135-
...background.options,
135+
type: background.options.type,
136136
service_worker: script,
137137
};
138138
} else {
139139
manifest.background = {
140-
...background.options,
140+
persistent: background.options.persistent,
141141
scripts: [script],
142142
};
143143
}

0 commit comments

Comments
 (0)