Skip to content
This repository has been archived by the owner on Sep 22, 2020. It is now read-only.

Timeout is not working when the page reloads #16

Closed
luanfonceca opened this issue May 22, 2014 · 2 comments
Closed

Timeout is not working when the page reloads #16

luanfonceca opened this issue May 22, 2014 · 2 comments

Comments

@luanfonceca
Copy link

Hi everyone, i am having a little trouble with the timeout config. I set the timeout to 30s, but when i reload the page that notification doesnt close anymore.

var notification = new Notify('title', {body: 'message', timeout: 30});
notification.show();

Anyone knows how to fix that or just how to clear all Notifications (which i can use to clear when the page loads)!?

@alexgibson
Copy link
Owner

Please clarify if I am missing something, but if you reload the page the JS that would have closed your notification would no longer be running? This would not really be an issue with the plugin, you would need to clear your notifications before the page is unloaded.

@alexgibson
Copy link
Owner

Closing this, unless you can explain the problem better. But it seems like you're expecting JS to execute after the page has been unloaded, which is unrealistic.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants