soixantecircuits/idle-vue

Is idle vue supports foe multiple tabs ?

html-helpers opened this issue · 1 comments

How to enable support for multiple tabs opened of the same app ?

Currently, plugin works fine for single tab.

I did override the value of this.$store.state.idleVue.isIdle in a tab that document.hidden is true

computed: {
    AppIsIdle() {
      if (document.hidden) {
        return false;
      } else {
        return this.$store.state.idleVue.isIdle;
      }
    },
  }