window.log/warn/error
as native toast notification
#10008
Labels
addition/proposal
New features or enhancements
needs implementer interest
Moving the issue forward requires implementers to express interest
What problem are you trying to solve?
Show messages to the user quickly and easily in the browser, without having to open the devtools console.
What solutions exist today?
Notification API
. However, a toast differs in that (1) it is not a notification at the OS level but rather at the browser level, and therefore does not require user permissions and (2) in notifications there is an "inbox" concept that requires an action. user explicit to be emptied while a toast notification is simply destroyed/disappears after a brief moment.,How would you solve it?
My proposal is to add the
log
,warn
anderror
methods to thewindows
object, in the same way that the console has these.Anything else?
A shared UI across browsers would allow users to identify and recognize notifications more easily.
The text was updated successfully, but these errors were encountered: