Comments (5)
Can you provide a sample or point me to where I can take a look? I don't see any problem on my end. IdleEnd is called when you interrupt, aka someone moves the mouse or types, etc. before IdleTimeout occurs. If IdleTimeout occurs, the module will not automatically reset (it will automatically reset if the user is idling, but not if they time out). Once they time out, the only way you can get them going again is to call Idle.watch()
at your discretion. Perhaps this is the situation you're in.
Normally, when timeout happens, you're redirecting them to a login page or something.
from ng-idle.
This is on the develop branch. I grepped through the code and didn't see a broadcast or emit of IdleEnd anywhere. What else would trigger the restoration of the original window title?
Sent from my phone
On Mar 6, 2015, at 12:32 PM, Mike Grabski [email protected] wrote:
Can you provide a sample or point me to where I can take a look? I don't see any problem on my end. IdleEnd is called when you interrupt, aka someone moves the mouse or types, etc. before IdleTimeout occurs. If IdleTimeout occurs, the module will not automatically reset (it will automatically reset if the user is idling, but not if they time out). Once they time out, the only way you can get them going again is to call Idle.watch() at your discretion.
Normally, when timeout happens, you're redirecting them to a login page or something.
—
Reply to this email directly or view it on GitHub.
from ng-idle.
Lines 65-67 on idle.js is where it performs the broadcast.
The title directive only sets it back on IdleEnd event, whether you trigger the event yourself or Idle
does it. You can also manually interact with the Title
service to work with the title.
from ng-idle.
Hmm, okay. I see. This is probably invalid then.
I'm having trouble because I'm trying to bubble up events from within an iframe. So I'm catching those events and calling Idle.interrupt(). However, if the idle dialog comes up and then goes away, the window title isn't restored. Do you think I need to be calling Title.restore() on every event too? It looks like Idle.interrupt() should be enough.
from ng-idle.
That was all a red herring. The problem was that our title text was inside <title><span>foo</span></title>, so ng-idle thought there wasn't a title at all.
Having tags within <title> seems to be undefined, so I'm going to close this as a user error.
from ng-idle.
Related Issues (20)
- [Question] Keepalive event in multiple tabs
- Issue in multiple tabs HOT 2
- Angular 5 - generic component child used in several main component not working
- Not want to reset timer in case of user intervention in app HOT 1
- Any plans to upgrade to Angular 6 HOT 1
- AngularJs - Unknown provider : IdleProvider HOT 1
- ng-Idle/core onIdleStart and onTimout function executing multiple times
- Having issues with ng-idle/core onIdleEnd & Mat-Dialog HOT 1
- keepalive onPingResponse subscribe response doesnt work right
- set url string parameter of http() dynamically
- Using JS Alert does not timeout until OK is Clicked HOT 1
- Key Management: Hardcoded Encryption Key HOT 1
- Select box (with multiple selections) not working properly
- unable to mock inactivity time with cypress clock/tick()
- How to use localstorageservice to handle in multiple tabs in the same browser HOT 1
- Incompatible with Angular 10 HOT 1
- Don't work with IFRAME HOT 3
- Keepalive interval not respected
- Implement a privacy preserving mode functionality avoiding usage of the persistent browser localStorage
- ng-idle not working for iOS in Ionic cordova
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ng-idle.