Coder Social home page Coder Social logo

Comments (5)

moribvndvs avatar moribvndvs commented on July 19, 2024

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.

taybin avatar taybin commented on July 19, 2024

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.

moribvndvs avatar moribvndvs commented on July 19, 2024

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.

taybin avatar taybin commented on July 19, 2024

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.

taybin avatar taybin commented on July 19, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.