gsklee / ngStorage

localStorage and sessionStorage done right for AngularJS.
MIT License
2.34k stars 461 forks source link

Issue when changing document focus #282

Open prestontighe opened 5 years ago

prestontighe commented 5 years ago

I have 2 tabs open. On tab 1 I click login and the state changes in ~1-2 seconds. If I quickly focus the 2nd tab before the changes in tab 1 the ngStorage doesn't update due to !doc.hasFocus || !doc.hasFocus(). Why is this placed here?

This is done in Chrome 71.0.3578.98 (Official Build) (64-bit)