Coder Social home page Coder Social logo

Comments (10)

HyoilKim avatar HyoilKim commented on June 30, 2024 1

Great! It works for me.
Thank you for the quick reply and update. I'm going to close this issue

from idledetect.

HyoilKim avatar HyoilKim commented on June 30, 2024

ScreenIdleState also does not exists

from idledetect.

HyoilKim avatar HyoilKim commented on June 30, 2024

I think this.hanldeIdleChagne function in ../IdleDetectIsomorph.js should be changed.

AS-IS
this.handleIdleChange = () => {
  ...
  if (userState === UserIdleState.idle || screenState === ScreenIdleState.locked) {
      this.handleIdle();
  }
};

TO-BE
this.handleIdleChange = () => {
  ...
  if (userState === 'idle' || screenState === 'locked') {
      this.handleIdle();
  }
};

from idledetect.

dmythro avatar dmythro commented on June 30, 2024

Hey @HyoilKim, could you please specify browser/version? So it's easier to reproduce and fix.

from idledetect.

dmythro avatar dmythro commented on June 30, 2024

Both UserIdleState and ScreenIdleState are declared globally in src/global.d.ts.

from idledetect.

HyoilKim avatar HyoilKim commented on June 30, 2024

could you please specify browser/version?

Chrome/Version 103.0.5060.53

from idledetect.

HyoilKim avatar HyoilKim commented on June 30, 2024

FYI, I got an error when I ran npm install idle-detect. so I ran yarn add idle-detect

from idledetect.

HyoilKim avatar HyoilKim commented on June 30, 2024

yarn add idle-detect command doesn't download global.d.ts. Do you know the reason?

from idledetect.

dmythro avatar dmythro commented on June 30, 2024

I will check builds once again. And will check if I can improve test coverage to be sure module works well everywhere.

from idledetect.

dmythro avatar dmythro commented on June 30, 2024

@HyoilKim thanks for info. Please check new version 0.1.2 if it works for you.
It'll try to find time for auto-tests.

from idledetect.

Related Issues (3)

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.