Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Interrupt sources for Angular Electron application #152

Closed
mathudak opened this issue Mar 9, 2021 · 1 comment
Closed

Interrupt sources for Angular Electron application #152

mathudak opened this issue Mar 9, 2021 · 1 comment

Comments

@mathudak
Copy link

mathudak commented Mar 9, 2021

Interrupt source are ignored/not working in the Electron application.
When the application is running in the Web Browser, ng2-idle is working as supposed to. But when the application is built as Electron application no interrupt happens and user is logged out even without any means of stopping it.

How to specify interrupts for the Electron application
Is there a way to specify my own interrupt source with shell/window or whatever the target provided by ElectronService?

What I tried

    new DocumentInterruptSource(
      'mousemove keydown DOMMouseScroll mousewheel mousedown touchstart touchmove scroll',
      {
        // no idea what to put here, looks like a bad choice for me
      }
    );

Also tried to create it manually but again, no idea what to put there

    const electronSource: InterruptSource = {
      attach: () => {},
      detach: () => {},
      isAttached: true,
      onInterrupt: EventEmitter<>
    };

Additional context
Great project to quick start the Electron Angular application if someone's interested in trying it

@mathudak
Copy link
Author

mathudak commented Mar 9, 2021

Issue is caused by trying to change the interrupt settings without app reload

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

No branches or pull requests

1 participant