{"action":"opened","issue":{"url":"https://api.github.com/repos/hoodiehq/hoodie-client/issues/105","repository_url":"https://api.github.com/repos/hoodiehq/hoodie-client","labels_url":"https://api.github.com/repos/hoodiehq/hoodie-client/issues/105/labels{/name}","comments_url":"https://api.github.com/repos/hoodiehq/hoodie-client/issues/105/comments","events_url":"https://api.github.com/repos/hoodiehq/hoodie-client/issues/105/events","html_url":"https://github.com/hoodiehq/hoodie-client/issues/105","id":191861999,"number":105,"title":"make `url` a required option","user":{"login":"gr2m","id":39992,"avatar_url":"https://avatars.githubusercontent.com/u/39992?v=3","gravatar_id":"","url":"https://api.github.com/users/gr2m","html_url":"https://github.com/gr2m","followers_url":"https://api.github.com/users/gr2m/followers","following_url":"https://api.github.com/users/gr2m/following{/other_user}","gists_url":"https://api.github.com/users/gr2m/gists{/gist_id}","starred_url":"https://api.github.com/users/gr2m/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gr2m/subscriptions","organizations_url":"https://api.github.com/users/gr2m/orgs","repos_url":"https://api.github.com/users/gr2m/repos","events_url":"https://api.github.com/users/gr2m/events{/privacy}","received_events_url":"https://api.github.com/users/gr2m/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-11-27T13:41:31Z","updated_at":"2016-11-27T13:41:31Z","closed_at":null,"body":"Originally we expected `@hoodie/client` to run in browsers only, but we realized that we have to make it compatible with ServiceWorker and Node.js, too (e.g. for server-side rendering).\r\n\r\nCurrently `url` is optional and it defaults to `location.origin`, which only exists in browsers. So instead we should make this a required option, and default `options.url` to `location.origin` in the [hoodie’s bundle code for /hoodie/client.js](https://github.com/hoodiehq/hoodie/blob/82295715babc7b3f95d30e2ddcfecf19acd89dcd/server/plugins/client/bundle.js#L68-L69)"}}
{"actor":{"display_login":"gr2m"}}