{"action":"created","issue":{"url":"https://api.github.com/repos/gadicc/meteor-messageformat/issues/191","labels_url":"https://api.github.com/repos/gadicc/meteor-messageformat/issues/191/labels{/name}","comments_url":"https://api.github.com/repos/gadicc/meteor-messageformat/issues/191/comments","events_url":"https://api.github.com/repos/gadicc/meteor-messageformat/issues/191/events","html_url":"https://github.com/gadicc/meteor-messageformat/pull/191","id":125621154,"number":191,"title":"[v2] Cordova support workaround","user":{"login":"MartinFournier","id":1521080,"avatar_url":"https://avatars.githubusercontent.com/u/1521080?v=3","gravatar_id":"","url":"https://api.github.com/users/MartinFournier","html_url":"https://github.com/MartinFournier","followers_url":"https://api.github.com/users/MartinFournier/followers","following_url":"https://api.github.com/users/MartinFournier/following{/other_user}","gists_url":"https://api.github.com/users/MartinFournier/gists{/gist_id}","starred_url":"https://api.github.com/users/MartinFournier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MartinFournier/subscriptions","organizations_url":"https://api.github.com/users/MartinFournier/orgs","repos_url":"https://api.github.com/users/MartinFournier/repos","events_url":"https://api.github.com/users/MartinFournier/events{/privacy}","received_events_url":"https://api.github.com/users/MartinFournier/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-01-08T14:20:42Z","updated_at":"2016-01-11T15:08:52Z","closed_at":"2016-01-11T15:08:47Z","pull_request":{"url":"https://api.github.com/repos/gadicc/meteor-messageformat/pulls/191","html_url":"https://github.com/gadicc/meteor-messageformat/pull/191","diff_url":"https://github.com/gadicc/meteor-messageformat/pull/191.diff","patch_url":"https://github.com/gadicc/meteor-messageformat/pull/191.patch"},"body":"This PR is a workaround to issues I've been having while running under Cordova. It seems there's a problem in inject-initial so that the Injected.get() call returns undefined. Currently it was causing a bunch of errors while loading the package if undefined. [This issue](https://github.com/Nemo64/meteor-translator/issues/9#issuecomment-118207612) was discussing using the settings file to fix the problem, so I used that for now.\r\n\r\nI'll admit it feels a bit hacky, but it does work for now.\r\n\r\nAlso, the Meteor.absoluteUrl('msgfmt/locale/' + unique) change is required so it does not transform the relative url to try to load an embedded resource (which would return a 404 html document instead of a js script, causing a improper syntax error from the tags).\r\n\r\nAlso updated the inject-initial package to the latest version.\r\n\r\nMight fix #131\r\n"},"comment":{"url":"https://api.github.com/repos/gadicc/meteor-messageformat/issues/comments/170581865","html_url":"https://github.com/gadicc/meteor-messageformat/pull/191#issuecomment-170581865","issue_url":"https://api.github.com/repos/gadicc/meteor-messageformat/issues/191","id":170581865,"user":{"login":"gadicc","id":381978,"avatar_url":"https://avatars.githubusercontent.com/u/381978?v=3","gravatar_id":"","url":"https://api.github.com/users/gadicc","html_url":"https://github.com/gadicc","followers_url":"https://api.github.com/users/gadicc/followers","following_url":"https://api.github.com/users/gadicc/following{/other_user}","gists_url":"https://api.github.com/users/gadicc/gists{/gist_id}","starred_url":"https://api.github.com/users/gadicc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gadicc/subscriptions","organizations_url":"https://api.github.com/users/gadicc/orgs","repos_url":"https://api.github.com/users/gadicc/repos","events_url":"https://api.github.com/users/gadicc/events{/privacy}","received_events_url":"https://api.github.com/users/gadicc/received_events","type":"User","site_admin":false},"created_at":"2016-01-11T15:08:52Z","updated_at":"2016-01-11T15:08:52Z","body":"Awesome!"}}