brian-girko / always-active

Pretend a webpage is in its active state even if not
https://webextension.org/listing/always-active.html
75 stars 12 forks source link

[Request] Document .isActive #14

Closed LillyCosmo closed 2 years ago

LillyCosmo commented 2 years ago

Hello,

It seems this doesn't block .isActive states, as tested here: https://jsbin.com/puhelonuco/edit?html,js,output

Please allow changing it to active

ghost commented 2 years ago

Your script returns an 'inactive' string, when the window.isActive property is not equal to the string, 'active'. The .isActive property is not defined, so your script says the property is defined as 'inactive'. I think this might be a bug in your test script.

Is .isActive in any web spec? I don't think it is.