feat: init
This commit is contained in:
8
node_modules/nuxt/dist/app/composables/url.js
generated
vendored
Normal file
8
node_modules/nuxt/dist/app/composables/url.js
generated
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
import { getRequestURL } from "h3";
|
||||
import { useRequestEvent } from "./ssr.js";
|
||||
export function useRequestURL(opts) {
|
||||
if (import.meta.server) {
|
||||
return getRequestURL(useRequestEvent(), opts);
|
||||
}
|
||||
return new URL(globalThis.location.href);
|
||||
}
|
||||
Reference in New Issue
Block a user