Refactor Desktop config to avoid global (#33468)

* Fix desktop registering protocol handler wrong

Was previously registering with too many args and was also only handling deeplinks if the app was already open, on a cold start they would be blindly ignored.

Tests aplenty

* Refactor Desktop config to avoid global

and centralise defaults

* Improve coverage

* Fix tests

* Improve coverage

* Fix test

* Rename field

* Improve coverage

* Rename field

* Move protocolHandler initialisation to after mainWindow is navigating

* Add comment

* Avoid double call to loadURL

* Improve coverage

* Improve coverage

* Fix tsc
This commit is contained in:
Michael Telatynski
2026-06-17 19:29:45 +00:00
committed by GitHub
parent 3f38e4ba33
commit f9343e5458
16 changed files with 487 additions and 113 deletions
+1
View File
@@ -4,6 +4,7 @@
"module": "nodenext",
"moduleResolution": "NodeNext",
"target": "es2022",
"lib": ["es2024"],
"sourceMap": false,
"typeRoots": [],
"types": [],