Skip to content
This repository was archived by the owner on Aug 2, 2022. It is now read-only.

Adding an alternative option for browser to generate key pairs (release/21.0.x branch)#749

Merged
bradlhart merged 4 commits intorelease/21.0.xfrom
keygen_window_var
Jun 9, 2020
Merged

Adding an alternative option for browser to generate key pairs (release/21.0.x branch)#749
bradlhart merged 4 commits intorelease/21.0.xfrom
keygen_window_var

Conversation

@bradlhart
Copy link
Copy Markdown
Contributor

Change Description

eosjs has a "browser usage" option in the documentation that means building the files with build-web and serving those files in the html. Unfortunately, without webpack or nodejs, that means that it's impossible to set a process.env environment variable. Another alternative option is needed to allow users to run the generateKeyPair method. Code required a // @ts-ignore due to TS2339.

It is worth noting that running this command in the browser is unsafe in production environments but developers will likely need this option for development or testing as well.

Resolves #737

Second PR to cherry pick commits to release/21.0.x branch

API Changes

  • API Changes

Documentation Additions

  • Documentation Additions

@bradlhart bradlhart merged commit 0187741 into release/21.0.x Jun 9, 2020
@bradlhart bradlhart deleted the keygen_window_var branch June 9, 2020 21:05
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants