Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
sabbaticaldev
on Aug 29, 2024
|
parent
|
context
|
favorite
| on:
OpenAI is good at unminifying code
the condition is a constant so it can be safely removed
lifthrasiir
on Aug 29, 2024
[–]
Only in the web environment. In fact the condition itself is true only when it runs in a web browser and not in a web worker.
sabbaticaldev
on Aug 29, 2024
|
parent
[–]
which is the case for that code and it was added by the obfuscator
lifthrasiir
on Aug 30, 2024
|
root
|
parent
[–]
No obfuscator would add only that. It is almost surely from some library that is aware of the possibility that `window` may not exist.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: