Skip to content

Commit bfc8866

Browse files
authored
fix: Fix bad regex from #1707 (#1712)
1 parent 9aedc29 commit bfc8866

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/wxt/src/core/builders/vite/plugins/devServerGlobals.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export function devServerGlobals(
1616
return {
1717
define: {
1818
__DEV_SERVER_ORIGIN__: JSON.stringify(
19-
server.origin.replace(/^https?:/, 'ws$1:'),
19+
server.origin.replace(/^http(s?):/, 'ws$1:'),
2020
),
2121
},
2222
};

0 commit comments

Comments
 (0)