Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion templates/vue/utils/fetch.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ export default function (id, options = {}) {
options.headers.set('Content-Type', MIME_TYPE)
}

return fetch(new URL(id, ENTRYPOINT).toString(), options).then((response) => {
const entryPoint = ENTRYPOINT + (ENTRYPOINT.endsWith('/') ? '' : '/')

return fetch(new URL(id, entryPoint), options).then((response) => {
if (response.ok) return response

return response
Expand Down