-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: cross-domain local storage (#43)
* refactor: rename appendSwarmSessionId function * style: vscode settings * refactor: move web2-helper.content to its folder * feat(background): add session validation * chore: add todo comment to web2helper serveEvents workflow * feat: localStorage message interface * feat(inpage): localStorage init * chore: add localStorage object to the window.swarm * chore: optional sessionId property for inpage and interceptor requests * feat(inpage): define localStorage under window.swarm * feat(background): local storage feeder * feat(contentscript): forward sessionId and check message is undefined before deserialization * build: add webextension-polyfill for async onMessage responses * refactor: payload of messages are default in any type * feat: get and set local storage * test: update sample html * test: init tests * chore: remove unrelated jsdoc * refactor: move swarmSessionId to swarm.sessionId * refactor(background): local storage feeder logic extraction * docs: readme * docs: readme * fix: prevent hack from parent window * test: move localStorage handler to a new page * test: refactor + wire the new localStorage page * fix(background): promise rejection handling * test: add iframe check for localstorage
- Loading branch information
Showing
26 changed files
with
638 additions
and
134 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.