Skip to content

Commit 8ce4b60

Browse files
committed
fix: fixed URL compatibility issue
fix #24
1 parent a1c3945 commit 8ce4b60

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/driver/Browser.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ export default class BrowserDriver extends BaseEventEmitter<DriverEventMap> impl
137137
const url = new URL(window.location.href);
138138
let path: string;
139139
if (this.mode === Mode.hash) {
140-
path = this.getPath(new URL(`x:${url.hash.replace(/^#/, '')}`));
140+
path = this.getPath(new URL(`http://x.com/${url.hash.replace(/^#/, '')}`));
141141
} else {
142142
path = this.getPath(url);
143143
}

0 commit comments

Comments
 (0)