aboutsummaryrefslogtreecommitdiffstats
path: root/src/preload-safe-debug.ts
Commit message (Collapse)AuthorAge
* Upgrade npm modules (#1312)Libravatar Vijay Aravamudhan2023-08-16
|
* refactor: more lint improvementsLibravatar MCMXC2023-07-30
| | | | | | | | | - set parserOptions.ecmaVersion to latest and env to es2024 in eslint config - install missing types libraries - install eslint-plugin-sonar - enable eslint-plugin-sonar recommended rules and declare jsx-runtime for react in eslint config - clean up disabled lint rules which don't inflict problems anymore - disable various lint issues and fix others
* eslint needs to be executed at the top-level to actually workv6.0.1-nightly.3Libravatar Vijay A2022-07-25
|
* fix: preload script detection in unit testsLibravatar Kristóf Marussy2022-05-12
| | | | Signed-off-by: Kristóf Marussy <kristof@marussy.com>
* Preload safe debug shim (#29)Libravatar Kristóf Marussy2022-04-22
In https://github.com/ferdium/ferdium-app/pull/23 we removed usages of the debug package due to an electron bug. This patch aims to restore some debug functionality by introducing a shim. The shim detect whether if it is being introduced in a preload script where the electron but would be triggered, and falls back to a simple replacement for debug. However, in the main and renderer processes, where a preload script is not being used, we still get full debug functionality. In this way, a module can be used both in a preload script and outside of it, while still preserving debug functionality whenever possible. Signed-off-by: Kristóf Marussy <kristof@marussy.com>