{"action":"created","issue":{"url":"https://api.github.com/repos/bitpay/bitcore/issues/1322","labels_url":"https://api.github.com/repos/bitpay/bitcore/issues/1322/labels{/name}","comments_url":"https://api.github.com/repos/bitpay/bitcore/issues/1322/comments","events_url":"https://api.github.com/repos/bitpay/bitcore/issues/1322/events","html_url":"https://github.com/bitpay/bitcore/pull/1322","id":102280610,"number":1322,"title":"fix web worker issues","user":{"login":"ryanxcharles","id":63740,"avatar_url":"https://avatars.githubusercontent.com/u/63740?v=3","gravatar_id":"","url":"https://api.github.com/users/ryanxcharles","html_url":"https://github.com/ryanxcharles","followers_url":"https://api.github.com/users/ryanxcharles/followers","following_url":"https://api.github.com/users/ryanxcharles/following{/other_user}","gists_url":"https://api.github.com/users/ryanxcharles/gists{/gist_id}","starred_url":"https://api.github.com/users/ryanxcharles/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ryanxcharles/subscriptions","organizations_url":"https://api.github.com/users/ryanxcharles/orgs","repos_url":"https://api.github.com/users/ryanxcharles/repos","events_url":"https://api.github.com/users/ryanxcharles/events{/privacy}","received_events_url":"https://api.github.com/users/ryanxcharles/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-08-21T02:30:03Z","updated_at":"2015-08-21T13:25:04Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/bitpay/bitcore/pulls/1322","html_url":"https://github.com/bitpay/bitcore/pull/1322","diff_url":"https://github.com/bitpay/bitcore/pull/1322.diff","patch_url":"https://github.com/bitpay/bitcore/pull/1322.patch"},"body":"bitcore should be able to run inside a web worker. There were two minor issues\r\npreventing bitcore from running inside a web worker. The first was that lodash\r\nwas outdated, and that version of lodash had a problem with web workers. The\r\nsecond was that the wrong version of ripemd160 was being called, because\r\nglobal.window does not exist inside a web worker (global.self does instead). A\r\nbetter way to check if you are in a browser is with process.browser.\r\n\r\nThis may not be a comprehensive list of issues, they're they are the ones I've noticed."},"comment":{"url":"https://api.github.com/repos/bitpay/bitcore/issues/comments/133424680","html_url":"https://github.com/bitpay/bitcore/pull/1322#issuecomment-133424680","issue_url":"https://api.github.com/repos/bitpay/bitcore/issues/1322","id":133424680,"user":{"login":"braydonf","id":544777,"avatar_url":"https://avatars.githubusercontent.com/u/544777?v=3","gravatar_id":"","url":"https://api.github.com/users/braydonf","html_url":"https://github.com/braydonf","followers_url":"https://api.github.com/users/braydonf/followers","following_url":"https://api.github.com/users/braydonf/following{/other_user}","gists_url":"https://api.github.com/users/braydonf/gists{/gist_id}","starred_url":"https://api.github.com/users/braydonf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/braydonf/subscriptions","organizations_url":"https://api.github.com/users/braydonf/orgs","repos_url":"https://api.github.com/users/braydonf/repos","events_url":"https://api.github.com/users/braydonf/events{/privacy}","received_events_url":"https://api.github.com/users/braydonf/received_events","type":"User","site_admin":false},"created_at":"2015-08-21T13:25:04Z","updated_at":"2015-08-21T13:25:04Z","body":"LTGM\r\n\r\nWe may also not need to check `process.browser` with: https://github.com/bitpay/bitcore/pull/1314"}}