{"action":"created","issue":{"url":"https://api.github.com/repos/freedomjs/freedom-social-firebase/issues/1","labels_url":"https://api.github.com/repos/freedomjs/freedom-social-firebase/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/freedomjs/freedom-social-firebase/issues/1/comments","events_url":"https://api.github.com/repos/freedomjs/freedom-social-firebase/issues/1/events","html_url":"https://github.com/freedomjs/freedom-social-firebase/issues/1","id":57082017,"number":1,"title":"freedom shim","user":{"login":"soycode","id":587921,"avatar_url":"https://avatars.githubusercontent.com/u/587921?v=3","gravatar_id":"","url":"https://api.github.com/users/soycode","html_url":"https://github.com/soycode","followers_url":"https://api.github.com/users/soycode/followers","following_url":"https://api.github.com/users/soycode/following{/other_user}","gists_url":"https://api.github.com/users/soycode/gists{/gist_id}","starred_url":"https://api.github.com/users/soycode/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/soycode/subscriptions","organizations_url":"https://api.github.com/users/soycode/orgs","repos_url":"https://api.github.com/users/soycode/repos","events_url":"https://api.github.com/users/soycode/events{/privacy}","received_events_url":"https://api.github.com/users/soycode/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-02-09T20:03:40Z","updated_at":"2015-02-10T21:12:33Z","closed_at":null,"body":"Per chats w/Lucas, Will, and Ray, we want to make sure that Firebase is supported as a freedom module from the get-go. This requires figuring out what functionality is missing to write an appropriate shim and get the pieces fit together. I'm creating this issue to begin tracking this effort, with the intention of fleshing out as we find what specific calls need a shim of some sort."},"comment":{"url":"https://api.github.com/repos/freedomjs/freedom-social-firebase/issues/comments/73784606","html_url":"https://github.com/freedomjs/freedom-social-firebase/issues/1#issuecomment-73784606","issue_url":"https://api.github.com/repos/freedomjs/freedom-social-firebase/issues/1","id":73784606,"user":{"login":"willscott","id":428199,"avatar_url":"https://avatars.githubusercontent.com/u/428199?v=3","gravatar_id":"","url":"https://api.github.com/users/willscott","html_url":"https://github.com/willscott","followers_url":"https://api.github.com/users/willscott/followers","following_url":"https://api.github.com/users/willscott/following{/other_user}","gists_url":"https://api.github.com/users/willscott/gists{/gist_id}","starred_url":"https://api.github.com/users/willscott/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/willscott/subscriptions","organizations_url":"https://api.github.com/users/willscott/orgs","repos_url":"https://api.github.com/users/willscott/repos","events_url":"https://api.github.com/users/willscott/events{/privacy}","received_events_url":"https://api.github.com/users/willscott/received_events","type":"User","site_admin":false},"created_at":"2015-02-10T21:12:33Z","updated_at":"2015-02-10T21:12:33Z","body":"node-xmpp has the same issues. solution seems to be to have a script load\nbefore firebase that defines `window` and `document` with needed properties.\n\nOn Tue Feb 10 2015 at 1:00:42 PM soycode <notifications@github.com> wrote:\n\n> So I've pinpointed it down to a more vanilla-ish JS bug:\n> https://github.com/soycode/freedom-firebase-test/blob/04f14daa5cf45a8965e25b335403834ae47a6a53/firebase-debug.js#L8813\n>\n> With the logging, this ends up throwing what I labeled an \"outer network\n> error\", i.e. it fails on exactly that line (the \"created js document\" log\n> line doesn't run). The error itself is ReferenceError: document is not\n> defined - so basically, Firebase seems to expect \"document\" to be in\n> scope, and it's not.\n>\n> I've not fully grokked *why* it's writing a script tag in this context,\n> but I think once we figure that out we ought to be able to come up with a\n> reasonable fix.\n>\n> —\n> Reply to this email directly or view it on GitHub\n> <https://github.com/freedomjs/freedom-social-firebase/issues/1#issuecomment-73782638>\n> .\n>\n"}}