Skip to content

Commit

Permalink
chore: fix dev time 404 in popup
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed Jul 2, 2024
1 parent 537c2f5 commit 4b3ba2e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/devtools/src/runtime/plugins/view/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,8 @@ export async function setupDevToolsClient({
function getIframe() {
if (!iframe) {
const runtimeConfig = useRuntimeConfig()
const CLIENT_PATH = `${runtimeConfig.app.baseURL}/__nuxt_devtools__/client`.replace(/\/+/g, '/')
const CLIENT_BASE = '/__nuxt_devtools__/client'
const CLIENT_PATH = `${runtimeConfig.app.baseURL.replace(CLIENT_BASE, '/')}${CLIENT_BASE}`.replace(/\/+/g, '/')
const initialUrl = CLIENT_PATH + state.value.route
iframe = document.createElement('iframe')

Expand Down

0 comments on commit 4b3ba2e

Please sign in to comment.