Commit 1b889c3
fix: resolve SonarCloud code smells in TypeScript conversions
- Replace deprecated e.returnValue with e.preventDefault() in beforeunload handler
- Convert WebWorker class to factory function to fix constructor return issue
- Export both createWebWorker and WebWorker for backward compatibility
- Address 'Unexpected class with only a constructor' code smell
- Address 'Unexpected return statement in constructor' code smell
Co-Authored-By: [email protected] <[email protected]>1 parent c846534 commit 1b889c3
File tree
3 files changed
+8
-8
lines changed- src
- components/AppStart/unload
- core_modules/capture-core-utils
- WebWorker
3 files changed
+8
-8
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
7 | 5 | | |
| 6 | + | |
| 7 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
0 commit comments