session-storage-sync
v0.6.0
Published
sync session storage across multiple browser tabs from same origin
Downloads
94
Maintainers
Readme
session-storage-sync
Sync local and session storage across browser tabs from the same origin.
Typescript
friendly, no @types required- built for
amd
module loader
BUILDING
- clone the repo
- npm install -g typescript
- $ tsc
- modify the
module
option to support whatever module loader you desire
- modify the
USAGE
This module is to be used in place of using window.sessionStorage
import {Storage} from 'session-storage-sync';
const storage = new Storage();
storage.session.set('hello', 'world'); //will sync across all open tabs from the same origin