WICG / idle-detection

A proposal for an idle detection and notification API for the web
Other
68 stars 22 forks source link

Small issues with `start()` method's type/data checks #47

Open marcoscaceres opened 2 years ago

marcoscaceres commented 2 years ago

Elsewhere, @reillyeon wrote:

checking whether options['signal'] is aborted should also happen before changing the state to "starting".

A few lines just need to be moved around to return a rejected promise before setting the state machine.