提交 ec183b09 编写于 作者: M Matt Bierner

Fix webview protocols for windows drive letter casing

上级 31bd6922
......@@ -420,7 +420,7 @@ function registerFileProtocol(
roots: string[]
) {
contents.session.protocol.registerFileProtocol(protocol, (request, callback: any) => {
const requestPath = URI.parse(request.url).path;
const requestPath = URI.parse(request.url).fsPath;
for (const root of roots) {
const normalizedPath = normalize(requestPath, true);
if (startsWith(normalizedPath, root + nativeSep)) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册