Skip to content
This repository has been archived by the owner on Apr 6, 2023. It is now read-only.

Commit

Permalink
avoid object destructure
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Oct 21, 2022
1 parent 4359032 commit 4c2f563
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/nuxt/src/app/plugins/payload.client.ts
Expand Up @@ -10,8 +10,7 @@ export default defineNuxtPlugin((nuxtApp) => {

// Load payload into cache
nuxtApp.hooks.hook('link:prefetch', (url) => {
const { protocol } = parseURL(url)
if (!protocol) {
if (!parseURL(url).protocol) {
return loadPayload(url)
}
})
Expand Down

0 comments on commit 4c2f563

Please sign in to comment.