fix: canonical uri can't load chinese file name

fixes #610
This commit is contained in:
linonetwo 2025-02-01 13:39:21 +08:00
parent c649eddc5f
commit 7191fe57fa
2 changed files with 18 additions and 2 deletions

View file

@ -53,6 +53,8 @@ export function handleOpenFileExternalLink(nextUrl: string, newWindowContext: IN
/* eslint-disable n/no-callback-literal */
/**
* Handle file protocol in webview to request file content and show in the view.
*
* Similar to src/services/view/setupIpcServerRoutesHandlers.ts where it is redirect and handled by tiddlywiki server.
*/
export function handleViewFileContentLoading(view: WebContentsView) {
view.webContents.session.webRequest.onBeforeRequest((details, callback) => {