normal-computing / fuji-web

Fuji is an AI agent that lives in your browser's sidepanel. You can now get tasks done online with a single command!
Apache License 2.0
193 stars 13 forks source link

Improve error handling when loading timeout + eslint rules #137

Closed mondaychen closed 2 months ago

mondaychen commented 2 months ago

When loading page timed out, we assume it's loaded instead of throwing. This is to handle cases when 1) there's bad link to analytics or ads scripts on the page 2) looping JS that keeps changing the page

Also, introduced new eslint rules no-throw-literal and prefer-promise-reject-errors to ensure we always have error.message to be shown to user