{"action":"created","issue":{"url":"https://api.github.com/repos/zendesk/cross-storage/issues/11","labels_url":"https://api.github.com/repos/zendesk/cross-storage/issues/11/labels{/name}","comments_url":"https://api.github.com/repos/zendesk/cross-storage/issues/11/comments","events_url":"https://api.github.com/repos/zendesk/cross-storage/issues/11/events","html_url":"https://github.com/zendesk/cross-storage/issues/11","id":65505744,"number":11,"title":"Uncaught TypeError: Cannot read property 'appendChild' of null","user":{"login":"nousacademy","id":7450944,"avatar_url":"https://avatars.githubusercontent.com/u/7450944?v=3","gravatar_id":"","url":"https://api.github.com/users/nousacademy","html_url":"https://github.com/nousacademy","followers_url":"https://api.github.com/users/nousacademy/followers","following_url":"https://api.github.com/users/nousacademy/following{/other_user}","gists_url":"https://api.github.com/users/nousacademy/gists{/gist_id}","starred_url":"https://api.github.com/users/nousacademy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nousacademy/subscriptions","organizations_url":"https://api.github.com/users/nousacademy/orgs","repos_url":"https://api.github.com/users/nousacademy/repos","events_url":"https://api.github.com/users/nousacademy/events{/privacy}","received_events_url":"https://api.github.com/users/nousacademy/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-03-31T17:36:49Z","updated_at":"2015-03-31T21:46:22Z","closed_at":"2015-03-31T21:46:22Z","body":"I dont know what I'm doing wrong I followed the example and I'm getting :\r\n\r\n    Uncaught TypeError: Cannot read property 'appendChild' of null\r\nOn the Hub I put : \r\n```\r\nCrossStorageHub.init([\r\n   {origin: /:\\/\\/(www\\.)?mysite.com\\/something\\/myapp?     my.tabName=01rf0000000D4nF#!\\/dashboard$/, allow: ['get', 'set', 'del']}\r\n]);\r\n```\r\n\r\nAnd for the Client I put: \r\n```\r\nvar storage = new CrossStorageClient('https://mysite.com/something/myapp?my.tabName=01rf0000000D4nF#!/dashboard');\r\n    var setKeys = function () {\r\n      return storage.set('newUserData', 'foo', 9000)\r\n      .then(function() {\r\n        return storage.get('key2', 'bar');\r\n      });\r\n    };\r\n    storage.onConnect()\r\n    .then(setKeys)\r\n    .then(function() {\r\n      return storage.get('key1');\r\n    }).then(function(res) {\r\n      console.log(res); // 'foo'\r\n    })['catch'](function(err) {\r\n      console.log(err);\r\n    });\r\n```\r\n \r\nIts not showing the last bit of code but I got it right from the example"},"comment":{"url":"https://api.github.com/repos/zendesk/cross-storage/issues/comments/88260377","html_url":"https://github.com/zendesk/cross-storage/issues/11#issuecomment-88260377","issue_url":"https://api.github.com/repos/zendesk/cross-storage/issues/11","id":88260377,"user":{"login":"danielstjules","id":817212,"avatar_url":"https://avatars.githubusercontent.com/u/817212?v=3","gravatar_id":"","url":"https://api.github.com/users/danielstjules","html_url":"https://github.com/danielstjules","followers_url":"https://api.github.com/users/danielstjules/followers","following_url":"https://api.github.com/users/danielstjules/following{/other_user}","gists_url":"https://api.github.com/users/danielstjules/gists{/gist_id}","starred_url":"https://api.github.com/users/danielstjules/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danielstjules/subscriptions","organizations_url":"https://api.github.com/users/danielstjules/orgs","repos_url":"https://api.github.com/users/danielstjules/repos","events_url":"https://api.github.com/users/danielstjules/events{/privacy}","received_events_url":"https://api.github.com/users/danielstjules/received_events","type":"User","site_admin":false},"created_at":"2015-03-31T21:46:22Z","updated_at":"2015-03-31T21:46:22Z","body":"np! Glad it worked :)"}}