-
Notifications
You must be signed in to change notification settings - Fork 21
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 plugin context to get browser storage #101
base: main
Are you sure you want to change the base?
Conversation
@0xtsukino @heeckhau works now in plugins like we do with headers and cookies using |
@Codetrauma can you rebase on alpha.7 before I review? |
4e4ee65
to
33cf958
Compare
Co-authored-by: Hendrik Eeckhaut <[email protected]>
if (config?.sessionStorage) { | ||
const sessionStorage: { [hostname: string]: { [key: string]: string } } = | ||
{}; | ||
(async () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
shouldn't this be await?
if (config?.localStorage) { | ||
const localStorage: { [hostname: string]: { [key: string]: string } } = {}; | ||
|
||
(async () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same here - should this be await?
Can get items from local and session storage by their key.
@0xtsukino if you can look this over. Getting an error "Cannot convert undefined to BigInt" when trying to test this in a plugin. I do receive the values of local or session storage, but unsure what the error specifically is coming from.