Skip to content

Commit

Permalink
TODO: handle registerFileProtocol deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
whyboris committed Oct 24, 2024
1 parent 3a1a634 commit 72e8858
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,10 @@ try {
}
});


// TODO: `registerFileProtocol` may be deprecated:
// https://www.electronjs.org/blog/electron-33-0#behavior-changed-custom-protocol-url-handling-on-windows

app.whenReady().then(() => {
protocol.registerFileProtocol('file', (request, callback) => {
const pathname = request.url.replace('file:///', '');
Expand Down

0 comments on commit 72e8858

Please sign in to comment.