Commit bae0732
committed
fix: Move LOGO constant inside logo() to fix namespace IIFE scoping
The UI namespace compiles to an IIFE in the bundled binary. Module-scope
const declarations (like LOGO) are not accessible inside the IIFE,
causing 'LOGO is not defined' at runtime when the logo() function is
called (e.g. via codeq -s <session_id>).
Fix by defining LOGO as a local constant inside the logo() function
rather than injecting it at module scope outside the namespace.1 parent fc970e8 commit bae0732
1 file changed
Lines changed: 8 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
240 | 240 | | |
241 | 241 | | |
242 | 242 | | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
243 | 246 | | |
244 | 247 | | |
245 | 248 | | |
246 | 249 | | |
247 | 250 | | |
248 | | - | |
249 | | - | |
250 | | - | |
251 | | - | |
252 | | - | |
253 | | - | |
254 | | - | |
255 | | - | |
256 | | - | |
257 | | - | |
258 | | - | |
259 | | - | |
| 251 | + | |
| 252 | + | |
260 | 253 | | |
261 | 254 | | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
262 | 258 | | |
263 | 259 | | |
264 | 260 | | |
| |||
0 commit comments