Skip to content

Commit

Permalink
fix(readMe): readMe modified
Browse files Browse the repository at this point in the history
  • Loading branch information
Shaurya.kalia authored and Shaurya.kalia committed Aug 26, 2020
1 parent 38cba50 commit e052e80
Show file tree
Hide file tree
Showing 9 changed files with 95 additions and 56 deletions.
15 changes: 14 additions & 1 deletion README.md
Expand Up @@ -205,7 +205,7 @@ Refer [above section](#create-an-instance--reference-before-using) on how to cre

- **`openNewTab`**

Saves `data` in specific `key` in sessionStorage. If the key is not provided, the library will warn.
Saves `data` in specific `key` in TabStorage.
Following types of JavaScript objects are supported:

| Parameter | Description |
Expand Down Expand Up @@ -295,6 +295,19 @@ Refer [above section](#create-an-instance--reference-before-using) on how to cre
parent.broadCastTo('57cd47da-d98e-4a2d-814c-9b07cb51059c', 'Hey! Can you run the script: worker.js? Thanks!');
```

- **`sendStorageDataTo`**

Sends `data` (key:value) pairs to be stored at a particular opened tab.

| Parameter | Description |
| --------- | ---------------------------- |
| id | id of the tab to send an msg |
| data | Object to be stored |

```
parent.sendStorageDataTo('57cd47da-d98e-4a2d-814c-9b07cb51059c', { token : '1eab3f' });
```

##### New Tab(Child) Methods

- **`getTabInfo`**
Expand Down
52 changes: 32 additions & 20 deletions dist/across-tabs.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/across-tabs.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/across-tabs.min.js

Large diffs are not rendered by default.

52 changes: 32 additions & 20 deletions dist/across-tabs.this.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/across-tabs.this.js.map

Large diffs are not rendered by default.

0 comments on commit e052e80

Please sign in to comment.