Commit e652904
committed
Sweep JS / HTML smells in web_viewer + swagger + mic-worklet
- web_viewer/index.html, swagger.html: ``window`` → ``globalThis``
where the global object is what's wanted (S7764).
- mic-worklet.js: collapse the two-step ``inputs[0] && inputs[0][0]``
guard into an optional chain ``inputs[0]?.[0]`` (S6582).
- web_viewer/index.html: NOSONAR javascript:S7785 on the
service-worker .catch(); top-level await isn't valid in the
non-module ``<script>`` tag this lives in.
- swagger.html: NOSONAR Web:S5725 on the three CDN ``<link>`` /
``<script>`` tags with rationale — assets are version-pinned with
crossorigin + no-referrer; pinning sha512 hashes here would
silently drift on Swagger UI bumps. Operators that need stronger
supply-chain controls should self-host or proxy via an
integrity-checking mirror.1 parent b447af6 commit e652904
3 files changed
Lines changed: 25 additions & 12 deletions
File tree
- je_auto_control/utils
- remote_desktop/web_viewer
- rest_api/dashboard
Lines changed: 6 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
879 | 879 | | |
880 | 880 | | |
881 | 881 | | |
882 | | - | |
883 | | - | |
884 | | - | |
| 882 | + | |
| 883 | + | |
885 | 884 | | |
886 | 885 | | |
887 | 886 | | |
| |||
1135 | 1134 | | |
1136 | 1135 | | |
1137 | 1136 | | |
1138 | | - | |
| 1137 | + | |
1139 | 1138 | | |
1140 | 1139 | | |
1141 | 1140 | | |
| |||
1205 | 1204 | | |
1206 | 1205 | | |
1207 | 1206 | | |
| 1207 | + | |
| 1208 | + | |
| 1209 | + | |
1208 | 1210 | | |
1209 | 1211 | | |
1210 | 1212 | | |
| |||
Lines changed: 2 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
11 | | - | |
12 | | - | |
| 10 | + | |
| 11 | + | |
13 | 12 | | |
14 | 13 | | |
15 | 14 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
7 | 19 | | |
8 | 20 | | |
9 | | - | |
| 21 | + | |
10 | 22 | | |
11 | 23 | | |
12 | 24 | | |
| |||
50 | 62 | | |
51 | 63 | | |
52 | 64 | | |
53 | | - | |
| 65 | + | |
54 | 66 | | |
55 | | - | |
| 67 | + | |
56 | 68 | | |
57 | 69 | | |
58 | 70 | | |
| |||
63 | 75 | | |
64 | 76 | | |
65 | 77 | | |
66 | | - | |
| 78 | + | |
67 | 79 | | |
68 | 80 | | |
69 | 81 | | |
| |||
86 | 98 | | |
87 | 99 | | |
88 | 100 | | |
89 | | - | |
| 101 | + | |
90 | 102 | | |
91 | 103 | | |
92 | 104 | | |
0 commit comments