Skip to content
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

browser: update since refactor #622

Merged
merged 2 commits into from
Nov 1, 2018
Merged

Conversation

pinheadmz
Copy link
Member

Tiny fixes are needed to run bcoin in a browser.

The location of the app.js file gets confused in some browsers when running locally (Chrome kept trying to access /app.js as an absolute path file:///app.js)

Since the big refactor this year and use of bclient for RPC calls, the object returned from RPC calls is slightly different and was always being displayed as null.

An update to blgr is also required for bcoin-in-browser to work:
bcoin-org/blgr#1, which re-adds the method logger.format() after it was refactored out a few months ago. This seems to be the cleanest way of restoring the in-page logger functionality.

These changes have been tested on local and a remote server, and functionality has been described in a new bcoin.io guide (pending merge): bcoin-org/bcoin-org.github.io#122 and so I added a second commit (optional) that redirects users to the longer, more detailed guide.

@codecov-io

This comment has been minimized.

@bucko13 bucko13 merged commit 78eeae6 into bcoin-org:master Nov 1, 2018
tuxcanfly pushed a commit to tuxcanfly/bcoin that referenced this pull request Jan 19, 2019
* browser: update since refactor

* docs: redirect browser to new guide
tuxcanfly pushed a commit to tuxcanfly/bcoin that referenced this pull request Apr 19, 2019
* browser: update since refactor

* docs: redirect browser to new guide
@braydonf braydonf added this to the 2.0.0 milestone Jan 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants