Skip to content

Commit

Permalink
chore: use joinURL
Browse files Browse the repository at this point in the history
  • Loading branch information
ineshbose committed Aug 1, 2024
1 parent 0f1193b commit 6feef56
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/module.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { join } from 'pathe'
import { withoutTrailingSlash, withTrailingSlash } from 'ufo'
import { joinURL } from 'ufo'
import {
defineNuxtModule,
installModule,
Expand Down Expand Up @@ -142,7 +142,7 @@ export default defineNuxtModule<ModuleOptions>({
category: 'modules',
view: {
type: 'iframe',
src: withTrailingSlash((nuxt.options.app?.baseURL === '/' ? '' : withoutTrailingSlash(nuxt.options.app.baseURL)) + viewerConfig.endpoint)
src: joinURL(nuxt.options.app?.baseURL, viewerConfig.endpoint),
},
})
})
Expand Down

0 comments on commit 6feef56

Please sign in to comment.