fix: loading of devtools extensions on startup (#13844)
fix: loading of devtools extensions on startup (#13844)

* Fix loading of devtools extensions on startup

The persisted DevTools Extensions were not being loaded correctly at startup. The `addDevToolsExtension` function was not defined when it was being called. An error was being thrown and ignored, so the whole thing would fail silently. I moved the code to load the extensions to the end of the event handler, so now it works.

* fixup: remove trailing spaces to unblock CI

* fixup: add logging when the Electron Enable Logging env var is set

* Fix linter error on undefined srcDirectory

* fixup: catch exception when loading extension

* Revert "fixup: catch exception when loading extension"

This reverts commit 42c2cf95bcaab8abfc5fbecbe4365d3adfe36d5b.

bpasero/electron,the-ress/electron,gerhardberger/electron,the-ress/electron,bpasero/electron,seanchas116/electron,electron/electron,the-ress/electron,bpasero/electron,seanchas116/electron,seanchas116/electron,gerhardberger/electron,bpasero/electron,electron/electron,electron/electron,electron/electron,seanchas116/electron,bpasero/electron,the-ress/electron,the-ress/electron,gerhardberger/electron,electron/electron,gerhardberger/electron,bpasero/electron,gerhardberger/electron,gerhardberger/electron,bpasero/electron,electron/electron,seanchas116/electron,seanchas116/electron,the-ress/electron,electron/electron,the-ress/electron,gerhardberger/electron