{"action":"closed","issue":{"url":"https://api.github.com/repos/MikeMcl/bignumber.js/issues/77","labels_url":"https://api.github.com/repos/MikeMcl/bignumber.js/issues/77/labels{/name}","comments_url":"https://api.github.com/repos/MikeMcl/bignumber.js/issues/77/comments","events_url":"https://api.github.com/repos/MikeMcl/bignumber.js/issues/77/events","html_url":"https://github.com/MikeMcl/bignumber.js/issues/77","id":114124860,"number":77,"title":"BigNumber fails to load in Electron apps","user":{"login":"aakilfernandes","id":1577353,"avatar_url":"https://avatars.githubusercontent.com/u/1577353?v=3","gravatar_id":"","url":"https://api.github.com/users/aakilfernandes","html_url":"https://github.com/aakilfernandes","followers_url":"https://api.github.com/users/aakilfernandes/followers","following_url":"https://api.github.com/users/aakilfernandes/following{/other_user}","gists_url":"https://api.github.com/users/aakilfernandes/gists{/gist_id}","starred_url":"https://api.github.com/users/aakilfernandes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aakilfernandes/subscriptions","organizations_url":"https://api.github.com/users/aakilfernandes/orgs","repos_url":"https://api.github.com/users/aakilfernandes/repos","events_url":"https://api.github.com/users/aakilfernandes/events{/privacy}","received_events_url":"https://api.github.com/users/aakilfernandes/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-10-29T19:09:41Z","updated_at":"2015-11-07T11:53:53Z","closed_at":"2015-11-07T11:53:53Z","body":"Not sure if you're familiar with Electron, but its a way of pacakging web apps as desktop apps. BigNumber fails to load in Electron apps due to this line:\r\n\r\nhttps://github.com/MikeMcl/bignumber.js/blob/master/bignumber.js#L2685\r\n\r\nElectron automatically creates a `module` object in the browser which makes bigNumber think its a node environment.\r\n\r\nI'm not sure what the solution is here. Is there an alternative to detecting a node environment?"}}