{"action":"created","issue":{"url":"https://api.github.com/repos/aadsm/JavaScript-ID3-Reader/issues/48","labels_url":"https://api.github.com/repos/aadsm/JavaScript-ID3-Reader/issues/48/labels{/name}","comments_url":"https://api.github.com/repos/aadsm/JavaScript-ID3-Reader/issues/48/comments","events_url":"https://api.github.com/repos/aadsm/JavaScript-ID3-Reader/issues/48/events","html_url":"https://github.com/aadsm/JavaScript-ID3-Reader/issues/48","id":58542936,"number":48,"title":"Available inside web worker?","user":{"login":"JokerQyou","id":1465267,"avatar_url":"https://avatars.githubusercontent.com/u/1465267?v=3","gravatar_id":"","url":"https://api.github.com/users/JokerQyou","html_url":"https://github.com/JokerQyou","followers_url":"https://api.github.com/users/JokerQyou/followers","following_url":"https://api.github.com/users/JokerQyou/following{/other_user}","gists_url":"https://api.github.com/users/JokerQyou/gists{/gist_id}","starred_url":"https://api.github.com/users/JokerQyou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JokerQyou/subscriptions","organizations_url":"https://api.github.com/users/JokerQyou/orgs","repos_url":"https://api.github.com/users/JokerQyou/repos","events_url":"https://api.github.com/users/JokerQyou/events{/privacy}","received_events_url":"https://api.github.com/users/JokerQyou/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-02-23T05:04:47Z","updated_at":"2015-02-23T15:51:11Z","closed_at":null,"body":"Hi! I was trying to use this library inside a web worker, since there might be a lot of files to parse in my case. But I found a reference of `document` in the minimized script (here in the source code: [line 144]( https://github.com/aadsm/JavaScript-ID3-Reader/blob/4ed36143188d7dfec8cb7d93fcffc663fe5492c8/src/binaryfile.js#L144 )), which would cause error. \r\nIs it currently possible to use this inside a web worker? If not, is it possible in the future? Thanks. "},"comment":{"url":"https://api.github.com/repos/aadsm/JavaScript-ID3-Reader/issues/comments/75569047","html_url":"https://github.com/aadsm/JavaScript-ID3-Reader/issues/48#issuecomment-75569047","issue_url":"https://api.github.com/repos/aadsm/JavaScript-ID3-Reader/issues/48","id":75569047,"user":{"login":"aadsm","id":78122,"avatar_url":"https://avatars.githubusercontent.com/u/78122?v=3","gravatar_id":"","url":"https://api.github.com/users/aadsm","html_url":"https://github.com/aadsm","followers_url":"https://api.github.com/users/aadsm/followers","following_url":"https://api.github.com/users/aadsm/following{/other_user}","gists_url":"https://api.github.com/users/aadsm/gists{/gist_id}","starred_url":"https://api.github.com/users/aadsm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aadsm/subscriptions","organizations_url":"https://api.github.com/users/aadsm/orgs","repos_url":"https://api.github.com/users/aadsm/repos","events_url":"https://api.github.com/users/aadsm/events{/privacy}","received_events_url":"https://api.github.com/users/aadsm/received_events","type":"User","site_admin":false},"created_at":"2015-02-23T15:51:10Z","updated_at":"2015-02-23T15:51:10Z","body":"That whole last block can be wrapped inside an `if (typeof document !== \"undefined\")` as it's only useful for old versions of IE that don't implement web works anyway."}}