{"action":"created","issue":{"url":"https://api.github.com/repos/heroiclabs/nakama-js/issues/21","repository_url":"https://api.github.com/repos/heroiclabs/nakama-js","labels_url":"https://api.github.com/repos/heroiclabs/nakama-js/issues/21/labels{/name}","comments_url":"https://api.github.com/repos/heroiclabs/nakama-js/issues/21/comments","events_url":"https://api.github.com/repos/heroiclabs/nakama-js/issues/21/events","html_url":"https://github.com/heroiclabs/nakama-js/issues/21","id":310230636,"node_id":"MDU6SXNzdWUzMTAyMzA2MzY=","number":21,"title":"window is undefined","user":{"login":"maxie-max","id":4652341,"node_id":"MDQ6VXNlcjQ2NTIzNDE=","avatar_url":"https://avatars3.githubusercontent.com/u/4652341?v=4","gravatar_id":"","url":"https://api.github.com/users/maxie-max","html_url":"https://github.com/maxie-max","followers_url":"https://api.github.com/users/maxie-max/followers","following_url":"https://api.github.com/users/maxie-max/following{/other_user}","gists_url":"https://api.github.com/users/maxie-max/gists{/gist_id}","starred_url":"https://api.github.com/users/maxie-max/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maxie-max/subscriptions","organizations_url":"https://api.github.com/users/maxie-max/orgs","repos_url":"https://api.github.com/users/maxie-max/repos","events_url":"https://api.github.com/users/maxie-max/events{/privacy}","received_events_url":"https://api.github.com/users/maxie-max/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-03-31T10:28:00Z","updated_at":"2018-08-08T10:13:21Z","closed_at":"2018-04-04T20:03:03Z","author_association":"NONE","body":"Any chance to add check for ```typeof self !== 'undefined' ? self : typeof window !== 'undefined' ? window : {}```\r\ninstead of ```typeof self !== 'undefined' ? self : window```\r\nin line 468 - nakama-js.umd.js. \r\n\r\nI use server rendering and compiler is giving me trouble since code references “browser globals” like window...\r\n"},"comment":{"url":"https://api.github.com/repos/heroiclabs/nakama-js/issues/comments/411356923","html_url":"https://github.com/heroiclabs/nakama-js/issues/21#issuecomment-411356923","issue_url":"https://api.github.com/repos/heroiclabs/nakama-js/issues/21","id":411356923,"node_id":"MDEyOklzc3VlQ29tbWVudDQxMTM1NjkyMw==","user":{"login":"MindfulMe","id":26275425,"node_id":"MDQ6VXNlcjI2Mjc1NDI1","avatar_url":"https://avatars0.githubusercontent.com/u/26275425?v=4","gravatar_id":"","url":"https://api.github.com/users/MindfulMe","html_url":"https://github.com/MindfulMe","followers_url":"https://api.github.com/users/MindfulMe/followers","following_url":"https://api.github.com/users/MindfulMe/following{/other_user}","gists_url":"https://api.github.com/users/MindfulMe/gists{/gist_id}","starred_url":"https://api.github.com/users/MindfulMe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MindfulMe/subscriptions","organizations_url":"https://api.github.com/users/MindfulMe/orgs","repos_url":"https://api.github.com/users/MindfulMe/repos","events_url":"https://api.github.com/users/MindfulMe/events{/privacy}","received_events_url":"https://api.github.com/users/MindfulMe/received_events","type":"User","site_admin":false},"created_at":"2018-08-08T10:13:21Z","updated_at":"2018-08-08T10:13:21Z","author_association":"NONE","body":"Hi, if you have this problem you are going to take [nakama-umd.js](https://github.com/heroiclabs/nakama-js/releases/download/v2.0.1/nakama-js.umd.js) from here and replace base64 encryption (especially btoa, atoa methods) with your custom ones"}}
{"actor":{"display_login":"MindfulMe"}}