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

Add tabSync option #79

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open

Conversation

xtoolkit
Copy link

hi
i add tab sync option with storage event

how to use?

  1. initial your key data (like with syncUniversal method).
  2. next enable track your key with enableTabTrack method.
  3. you can disable track key with disableTabTrack
  4. now your key sync in all tabs in your browser

example:

this.keyname = 'appAuthorize';

// initial data
this.$storage.syncUniversal(this.keyname , {
    login: false,
    token: '',
    ...
);

// enable key track
this.$storage.enableTabTrack(this.keyname );

ezgif com-video-to-gif

@xtoolkit
Copy link
Author

xtoolkit commented Jul 2, 2020

hello!?!

Copy link
Member

@pi0 pi0 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice feature 👌 (and sorry for late review)

lib/storage.js Outdated Show resolved Hide resolved
lib/storage.js Outdated Show resolved Hide resolved
@xtoolkit xtoolkit requested a review from pi0 July 10, 2020 08:59
lib/storage.js Outdated Show resolved Hide resolved
@xtoolkit xtoolkit requested a review from pi0 July 10, 2020 09:59
@SebastianMieszczanczyk
Copy link

@pi0 could you check it please? It is a nice feature which I need

@atinux atinux self-requested a review December 9, 2020 12:50
@atinux atinux added the pending label Jan 25, 2021 — with Volta.net
@atinux atinux removed their request for review May 24, 2021 15:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants