{"action":"created","comment":{"url":"https://api.github.com/repos/mozilla/buddyup/pulls/comments/36672546","id":36672546,"diff_hunk":"@@ -1,20 +1,33 @@\n 'use strict';\n \n-/* global Navigation, User, Utils */\n+/* global _, asyncStorage, Navigation, Settings, User, Utils */\n \n (function(exports) {\n   var LaunchChecks = {\n     init: function() {\n-      var gecko = parseInt(Utils.get_gecko_version(), 10);\n-      if (gecko < 32) {\n-        Navigation.go_to_view('old_versions.html');\n-        return;\n-      }\n+      asyncStorage.getItem('has_launched').then(function(launched) {\n+        var supported_locale = _.find(Settings.LOCALES, function(locale) {\n+          return locale[0] == navigator.language;\n+        });\n \n-      User.get_temporary_user().then(function(user) {\n-        if (user) {\n-          Navigation.go_to_view('email_confirmation.html');\n+        if (!launched && !supported_locale) {\n+          Navigation.go_to_view('unsupported_locale.html');\n+          return;\n         }\n+\n+        // asyncStorage.setItem('has_launched', true);","path":"app/js/launch_checks.js","position":27,"original_position":27,"commit_id":"81277bb0cd2660565dbe8b5799d09c17bdc6c033","original_commit_id":"81277bb0cd2660565dbe8b5799d09c17bdc6c033","user":{"login":"mythmon","id":305049,"avatar_url":"https://avatars.githubusercontent.com/u/305049?v=3","gravatar_id":"","url":"https://api.github.com/users/mythmon","html_url":"https://github.com/mythmon","followers_url":"https://api.github.com/users/mythmon/followers","following_url":"https://api.github.com/users/mythmon/following{/other_user}","gists_url":"https://api.github.com/users/mythmon/gists{/gist_id}","starred_url":"https://api.github.com/users/mythmon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mythmon/subscriptions","organizations_url":"https://api.github.com/users/mythmon/orgs","repos_url":"https://api.github.com/users/mythmon/repos","events_url":"https://api.github.com/users/mythmon/events{/privacy}","received_events_url":"https://api.github.com/users/mythmon/received_events","type":"User","site_admin":false},"body":"?","created_at":"2015-08-10T19:19:00Z","updated_at":"2015-08-10T19:19:00Z","html_url":"https://github.com/mozilla/buddyup/pull/171#discussion_r36672546","pull_request_url":"https://api.github.com/repos/mozilla/buddyup/pulls/171","_links":{"self":{"href":"https://api.github.com/repos/mozilla/buddyup/pulls/comments/36672546"},"html":{"href":"https://github.com/mozilla/buddyup/pull/171#discussion_r36672546"},"pull_request":{"href":"https://api.github.com/repos/mozilla/buddyup/pulls/171"}}},"pull_request":{"url":"https://api.github.com/repos/mozilla/buddyup/pulls/171","id":42037960,"html_url":"https://github.com/mozilla/buddyup/pull/171","diff_url":"https://github.com/mozilla/buddyup/pull/171.diff","patch_url":"https://github.com/mozilla/buddyup/pull/171.patch","issue_url":"https://api.github.com/repos/mozilla/buddyup/issues/171","number":171,"state":"open","locked":false,"title":"[bug 1148425] Warn people when their locale is not supported","user":{"login":"rehandalal","id":987136,"avatar_url":"https://avatars.githubusercontent.com/u/987136?v=3","gravatar_id":"","url":"https://api.github.com/users/rehandalal","html_url":"https://github.com/rehandalal","followers_url":"https://api.github.com/users/rehandalal/followers","following_url":"https://api.github.com/users/rehandalal/following{/other_user}","gists_url":"https://api.github.com/users/rehandalal/gists{/gist_id}","starred_url":"https://api.github.com/users/rehandalal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rehandalal/subscriptions","organizations_url":"https://api.github.com/users/rehandalal/orgs","repos_url":"https://api.github.com/users/rehandalal/repos","events_url":"https://api.github.com/users/rehandalal/events{/privacy}","received_events_url":"https://api.github.com/users/rehandalal/received_events","type":"User","site_admin":false},"body":"We only care about 81277bb onwards.\r\n\r\nr?","created_at":"2015-08-10T16:19:04Z","updated_at":"2015-08-10T19:19:00Z","closed_at":null,"merged_at":null,"merge_commit_sha":"081034721ab49d0a6702b6d9edd1773791dbc089","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/mozilla/buddyup/pulls/171/commits","review_comments_url":"https://api.github.com/repos/mozilla/buddyup/pulls/171/comments","review_comment_url":"https://api.github.com/repos/mozilla/buddyup/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mozilla/buddyup/issues/171/comments","statuses_url":"https://api.github.com/repos/mozilla/buddyup/statuses/81277bb0cd2660565dbe8b5799d09c17bdc6c033","head":{"label":"rehandalal:supported-locale","ref":"supported-locale","sha":"81277bb0cd2660565dbe8b5799d09c17bdc6c033","user":{"login":"rehandalal","id":987136,"avatar_url":"https://avatars.githubusercontent.com/u/987136?v=3","gravatar_id":"","url":"https://api.github.com/users/rehandalal","html_url":"https://github.com/rehandalal","followers_url":"https://api.github.com/users/rehandalal/followers","following_url":"https://api.github.com/users/rehandalal/following{/other_user}","gists_url":"https://api.github.com/users/rehandalal/gists{/gist_id}","starred_url":"https://api.github.com/users/rehandalal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rehandalal/subscriptions","organizations_url":"https://api.github.com/users/rehandalal/orgs","repos_url":"https://api.github.com/users/rehandalal/repos","events_url":"https://api.github.com/users/rehandalal/events{/privacy}","received_events_url":"https://api.github.com/users/rehandalal/received_events","type":"User","site_admin":false},"repo":{"id":28980665,"name":"buddyup","full_name":"rehandalal/buddyup","owner":{"login":"rehandalal","id":987136,"avatar_url":"https://avatars.githubusercontent.com/u/987136?v=3","gravatar_id":"","url":"https://api.github.com/users/rehandalal","html_url":"https://github.com/rehandalal","followers_url":"https://api.github.com/users/rehandalal/followers","following_url":"https://api.github.com/users/rehandalal/following{/other_user}","gists_url":"https://api.github.com/users/rehandalal/gists{/gist_id}","starred_url":"https://api.github.com/users/rehandalal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rehandalal/subscriptions","organizations_url":"https://api.github.com/users/rehandalal/orgs","repos_url":"https://api.github.com/users/rehandalal/repos","events_url":"https://api.github.com/users/rehandalal/events{/privacy}","received_events_url":"https://api.github.com/users/rehandalal/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/rehandalal/buddyup","description":"The UI repo for the buddy-up realtime support FirefoxOS app","fork":true,"url":"https://api.github.com/repos/rehandalal/buddyup","forks_url":"https://api.github.com/repos/rehandalal/buddyup/forks","keys_url":"https://api.github.com/repos/rehandalal/buddyup/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rehandalal/buddyup/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rehandalal/buddyup/teams","hooks_url":"https://api.github.com/repos/rehandalal/buddyup/hooks","issue_events_url":"https://api.github.com/repos/rehandalal/buddyup/issues/events{/number}","events_url":"https://api.github.com/repos/rehandalal/buddyup/events","assignees_url":"https://api.github.com/repos/rehandalal/buddyup/assignees{/user}","branches_url":"https://api.github.com/repos/rehandalal/buddyup/branches{/branch}","tags_url":"https://api.github.com/repos/rehandalal/buddyup/tags","blobs_url":"https://api.github.com/repos/rehandalal/buddyup/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rehandalal/buddyup/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rehandalal/buddyup/git/refs{/sha}","trees_url":"https://api.github.com/repos/rehandalal/buddyup/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rehandalal/buddyup/statuses/{sha}","languages_url":"https://api.github.com/repos/rehandalal/buddyup/languages","stargazers_url":"https://api.github.com/repos/rehandalal/buddyup/stargazers","contributors_url":"https://api.github.com/repos/rehandalal/buddyup/contributors","subscribers_url":"https://api.github.com/repos/rehandalal/buddyup/subscribers","subscription_url":"https://api.github.com/repos/rehandalal/buddyup/subscription","commits_url":"https://api.github.com/repos/rehandalal/buddyup/commits{/sha}","git_commits_url":"https://api.github.com/repos/rehandalal/buddyup/git/commits{/sha}","comments_url":"https://api.github.com/repos/rehandalal/buddyup/comments{/number}","issue_comment_url":"https://api.github.com/repos/rehandalal/buddyup/issues/comments{/number}","contents_url":"https://api.github.com/repos/rehandalal/buddyup/contents/{+path}","compare_url":"https://api.github.com/repos/rehandalal/buddyup/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rehandalal/buddyup/merges","archive_url":"https://api.github.com/repos/rehandalal/buddyup/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rehandalal/buddyup/downloads","issues_url":"https://api.github.com/repos/rehandalal/buddyup/issues{/number}","pulls_url":"https://api.github.com/repos/rehandalal/buddyup/pulls{/number}","milestones_url":"https://api.github.com/repos/rehandalal/buddyup/milestones{/number}","notifications_url":"https://api.github.com/repos/rehandalal/buddyup/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rehandalal/buddyup/labels{/name}","releases_url":"https://api.github.com/repos/rehandalal/buddyup/releases{/id}","created_at":"2015-01-08T18:52:07Z","updated_at":"2015-03-30T15:14:02Z","pushed_at":"2015-08-10T19:17:07Z","git_url":"git://github.com/rehandalal/buddyup.git","ssh_url":"git@github.com:rehandalal/buddyup.git","clone_url":"https://github.com/rehandalal/buddyup.git","svn_url":"https://github.com/rehandalal/buddyup","homepage":"","size":34388,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"mozilla:master","ref":"master","sha":"bfd7b0fd78628d1aa58765e003890466e1c022ea","user":{"login":"mozilla","id":131524,"avatar_url":"https://avatars.githubusercontent.com/u/131524?v=3","gravatar_id":"","url":"https://api.github.com/users/mozilla","html_url":"https://github.com/mozilla","followers_url":"https://api.github.com/users/mozilla/followers","following_url":"https://api.github.com/users/mozilla/following{/other_user}","gists_url":"https://api.github.com/users/mozilla/gists{/gist_id}","starred_url":"https://api.github.com/users/mozilla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mozilla/subscriptions","organizations_url":"https://api.github.com/users/mozilla/orgs","repos_url":"https://api.github.com/users/mozilla/repos","events_url":"https://api.github.com/users/mozilla/events{/privacy}","received_events_url":"https://api.github.com/users/mozilla/received_events","type":"Organization","site_admin":false},"repo":{"id":18778634,"name":"buddyup","full_name":"mozilla/buddyup","owner":{"login":"mozilla","id":131524,"avatar_url":"https://avatars.githubusercontent.com/u/131524?v=3","gravatar_id":"","url":"https://api.github.com/users/mozilla","html_url":"https://github.com/mozilla","followers_url":"https://api.github.com/users/mozilla/followers","following_url":"https://api.github.com/users/mozilla/following{/other_user}","gists_url":"https://api.github.com/users/mozilla/gists{/gist_id}","starred_url":"https://api.github.com/users/mozilla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mozilla/subscriptions","organizations_url":"https://api.github.com/users/mozilla/orgs","repos_url":"https://api.github.com/users/mozilla/repos","events_url":"https://api.github.com/users/mozilla/events{/privacy}","received_events_url":"https://api.github.com/users/mozilla/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mozilla/buddyup","description":"The UI repo for the buddy-up realtime support FirefoxOS app","fork":false,"url":"https://api.github.com/repos/mozilla/buddyup","forks_url":"https://api.github.com/repos/mozilla/buddyup/forks","keys_url":"https://api.github.com/repos/mozilla/buddyup/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mozilla/buddyup/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mozilla/buddyup/teams","hooks_url":"https://api.github.com/repos/mozilla/buddyup/hooks","issue_events_url":"https://api.github.com/repos/mozilla/buddyup/issues/events{/number}","events_url":"https://api.github.com/repos/mozilla/buddyup/events","assignees_url":"https://api.github.com/repos/mozilla/buddyup/assignees{/user}","branches_url":"https://api.github.com/repos/mozilla/buddyup/branches{/branch}","tags_url":"https://api.github.com/repos/mozilla/buddyup/tags","blobs_url":"https://api.github.com/repos/mozilla/buddyup/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mozilla/buddyup/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mozilla/buddyup/git/refs{/sha}","trees_url":"https://api.github.com/repos/mozilla/buddyup/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mozilla/buddyup/statuses/{sha}","languages_url":"https://api.github.com/repos/mozilla/buddyup/languages","stargazers_url":"https://api.github.com/repos/mozilla/buddyup/stargazers","contributors_url":"https://api.github.com/repos/mozilla/buddyup/contributors","subscribers_url":"https://api.github.com/repos/mozilla/buddyup/subscribers","subscription_url":"https://api.github.com/repos/mozilla/buddyup/subscription","commits_url":"https://api.github.com/repos/mozilla/buddyup/commits{/sha}","git_commits_url":"https://api.github.com/repos/mozilla/buddyup/git/commits{/sha}","comments_url":"https://api.github.com/repos/mozilla/buddyup/comments{/number}","issue_comment_url":"https://api.github.com/repos/mozilla/buddyup/issues/comments{/number}","contents_url":"https://api.github.com/repos/mozilla/buddyup/contents/{+path}","compare_url":"https://api.github.com/repos/mozilla/buddyup/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mozilla/buddyup/merges","archive_url":"https://api.github.com/repos/mozilla/buddyup/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mozilla/buddyup/downloads","issues_url":"https://api.github.com/repos/mozilla/buddyup/issues{/number}","pulls_url":"https://api.github.com/repos/mozilla/buddyup/pulls{/number}","milestones_url":"https://api.github.com/repos/mozilla/buddyup/milestones{/number}","notifications_url":"https://api.github.com/repos/mozilla/buddyup/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mozilla/buddyup/labels{/name}","releases_url":"https://api.github.com/repos/mozilla/buddyup/releases{/id}","created_at":"2014-04-14T22:11:58Z","updated_at":"2015-06-24T17:01:27Z","pushed_at":"2015-08-10T19:16:36Z","git_url":"git://github.com/mozilla/buddyup.git","ssh_url":"git@github.com:mozilla/buddyup.git","clone_url":"https://github.com/mozilla/buddyup.git","svn_url":"https://github.com/mozilla/buddyup","homepage":"","size":35844,"stargazers_count":7,"watchers_count":7,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":19,"mirror_url":null,"open_issues_count":1,"forks":19,"open_issues":1,"watchers":7,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mozilla/buddyup/pulls/171"},"html":{"href":"https://github.com/mozilla/buddyup/pull/171"},"issue":{"href":"https://api.github.com/repos/mozilla/buddyup/issues/171"},"comments":{"href":"https://api.github.com/repos/mozilla/buddyup/issues/171/comments"},"review_comments":{"href":"https://api.github.com/repos/mozilla/buddyup/pulls/171/comments"},"review_comment":{"href":"https://api.github.com/repos/mozilla/buddyup/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mozilla/buddyup/pulls/171/commits"},"statuses":{"href":"https://api.github.com/repos/mozilla/buddyup/statuses/81277bb0cd2660565dbe8b5799d09c17bdc6c033"}}}}