Skip to content

Add tabSync option#79

Open
xtoolkit wants to merge 7 commits intonuxt-community:masterfrom
xtoolkit:master
Open

Add tabSync option#79
xtoolkit wants to merge 7 commits intonuxt-community:masterfrom
xtoolkit:master

Conversation

@xtoolkit
Copy link
Copy Markdown

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
Copy Markdown
Author

xtoolkit commented Jul 2, 2020

hello!?!

Copy link
Copy Markdown
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)

@xtoolkit xtoolkit requested a review from pi0 July 10, 2020 08:59
@xtoolkit xtoolkit requested a review from pi0 July 10, 2020 09:59
@SebastianMieszczanczyk
Copy link
Copy Markdown

@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
@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