permission.site icon indicating copy to clipboard operation
permission.site copied to clipboard

Indicate in the UI when an API is not supported

Open simevidas opened this issue 8 years ago • 0 comments

Instead of just throwing an error in the browser’s console, consider showing in the site’s UI that an error occurred; e.g. when the user clicks on a button which causes an error, you could add

<span style="color: red;">⚠</span>

to the button:

capture


Update: Using a pseudo-element would probably be a better idea.

button.error::after {
    content: " ⚠";
    color: red;
}

simevidas avatar Apr 19 '16 20:04 simevidas