Skip to content

Commit 9860c37

Browse files
🐛 fix file path
1 parent 439c952 commit 9860c37

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ const scheme = 'vvt'
5656
const registerProtocol = () => {
5757
protocol.handle(scheme, async (request) => {
5858
const url = request.url
59-
const parsedUrl = url.substring(scheme.length + 3).replace(/^(\.\.(\/|\\|$))+/, '')
59+
const parsedUrl = url.substring(scheme.length + 3).split('?')[0].replace(/^(\.\.(\/|\\|$))+/, '')
6060
const requestedPath = path.join(__dirname, parsedUrl)
6161
const normalizedPath = path.normalize(requestedPath)
6262

0 commit comments

Comments
 (0)