mirror of
https://github.com/tiddly-gittly/TidGi-Desktop.git
synced 2026-02-28 11:02:04 -08:00
parent
c649eddc5f
commit
7191fe57fa
2 changed files with 18 additions and 2 deletions
|
|
@ -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) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue