HeyPuter / phoenix

🔥 Puter's pure-javascript shell
https://puter.com/app/terminal
GNU Affero General Public License v3.0
87 stars 15 forks source link

Prevent ReferenceErrors caused by reading `process` from the browser #79

Closed AtkinsSJ closed 2 months ago

AtkinsSJ commented 2 months ago

process only exists when running in Node. Notably, if (process) is still a ReferenceError, so the existing checks need modifying too.