Skip to content

Commit

Permalink
Update manifest.ts to support MV2 runtime
Browse files Browse the repository at this point in the history
  • Loading branch information
harmonyharmo authored Feb 13, 2025
1 parent 342057b commit 0c1fa6a
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions packages/wxt/src/core/utils/manifest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -412,14 +412,6 @@ function addEntrypoints(
const runtimeContentScripts = contentScripts.filter(
(cs) => cs.options.registration === 'runtime',
);
if (
runtimeContentScripts.length > 0 &&
wxt.config.manifestVersion === 2
) {
throw Error(
'Cannot use `registration: "runtime"` with MV2 content scripts, it is a MV3-only feature.',
);
}
runtimeContentScripts.forEach((script) => {
script.options.matches?.forEach((matchPattern) => {
addHostPermission(manifest, matchPattern);
Expand Down

0 comments on commit 0c1fa6a

Please sign in to comment.