Skip to content

Commit 72e8858

Browse files
committed
TODO: handle registerFileProtocol deprecated
1 parent 3a1a634 commit 72e8858

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

main.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,10 @@ try {
240240
}
241241
});
242242

243+
244+
// TODO: `registerFileProtocol` may be deprecated:
245+
// https://www.electronjs.org/blog/electron-33-0#behavior-changed-custom-protocol-url-handling-on-windows
246+
243247
app.whenReady().then(() => {
244248
protocol.registerFileProtocol('file', (request, callback) => {
245249
const pathname = request.url.replace('file:///', '');

0 commit comments

Comments
 (0)