Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature] More obvious reporting of script syntax error #2016

Open
BalaM314 opened this issue Jan 26, 2024 · 1 comment
Open

[Feature] More obvious reporting of script syntax error #2016

BalaM314 opened this issue Jan 26, 2024 · 1 comment

Comments

@BalaM314
Copy link

Motivation
When a sub-frame user script has a syntax error, the UI only shows the error after opening the extension menu, and then selecting "sub-frames only scripts". This is very easy to miss.

Proposed Solution
Display a ⚠ badge on the extension logo, or another easy to notice warning.

Use Cases
It would make it easier to debug syntax errors, as currently it is very easy to spend a few minutes looking through logs wondering why the script isn't running.

@tophf
Copy link
Member

tophf commented Jan 26, 2024

We can show the warning text or icon on "sub-frames only scripts" title.

The badge is limited to just a few characters. We can add ! to the badge but I'm not sure it'll be clear, so maybe we'll add a third color in the options (red by default) which will be used in this case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants