If the window isn't being viewed the timeout should not count, allowing people to come back to the tab to see the toast From feildmaster/Alert-Toast#5