There was an error while loading. Please reload this page.
1 parent 0b60b3a commit 0c976afCopy full SHA for 0c976af
lib/util/url.ts
@@ -44,7 +44,7 @@ export function resolve(from: string, to: string) {
44
* @returns
45
*/
46
export function cwd() {
47
- if (typeof window !== "undefined") {
+ if (typeof window !== "undefined" && typeof location !== "undefined") {
48
return location.href;
49
}
50
0 commit comments