{"action":"created","issue":{"url":"https://api.github.com/repos/SteamDatabase/steamSummerMinigame/issues/139","labels_url":"https://api.github.com/repos/SteamDatabase/steamSummerMinigame/issues/139/labels{/name}","comments_url":"https://api.github.com/repos/SteamDatabase/steamSummerMinigame/issues/139/comments","events_url":"https://api.github.com/repos/SteamDatabase/steamSummerMinigame/issues/139/events","html_url":"https://github.com/SteamDatabase/steamSummerMinigame/issues/139","id":88386836,"number":139,"title":"Page doesn't reload if game fails to load","user":{"login":"wmansir","id":12893575,"avatar_url":"https://avatars.githubusercontent.com/u/12893575?v=3","gravatar_id":"","url":"https://api.github.com/users/wmansir","html_url":"https://github.com/wmansir","followers_url":"https://api.github.com/users/wmansir/followers","following_url":"https://api.github.com/users/wmansir/following{/other_user}","gists_url":"https://api.github.com/users/wmansir/gists{/gist_id}","starred_url":"https://api.github.com/users/wmansir/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wmansir/subscriptions","organizations_url":"https://api.github.com/users/wmansir/orgs","repos_url":"https://api.github.com/users/wmansir/repos","events_url":"https://api.github.com/users/wmansir/events{/privacy}","received_events_url":"https://api.github.com/users/wmansir/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/SteamDatabase/steamSummerMinigame/labels/1%20-%20High%20Priority","name":"1 - High Priority","color":"EF5350"},{"url":"https://api.github.com/repos/SteamDatabase/steamSummerMinigame/labels/Bug","name":"Bug","color":"D50000"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-06-15T10:42:06Z","updated_at":"2015-06-15T11:04:46Z","closed_at":null,"body":"The minigame will occasionally get stuck loading at 97/97 after a page reload and with the current script will stay that way until manually refreshed. It seems the current autorefresh function isn't setup until after the game loads, and even then it won't trigger unless the current target is defined and not a boss. "},"comment":{"url":"https://api.github.com/repos/SteamDatabase/steamSummerMinigame/issues/comments/112019010","html_url":"https://github.com/SteamDatabase/steamSummerMinigame/issues/139#issuecomment-112019010","issue_url":"https://api.github.com/repos/SteamDatabase/steamSummerMinigame/issues/139","id":112019010,"user":{"login":"kton","id":6096547,"avatar_url":"https://avatars.githubusercontent.com/u/6096547?v=3","gravatar_id":"","url":"https://api.github.com/users/kton","html_url":"https://github.com/kton","followers_url":"https://api.github.com/users/kton/followers","following_url":"https://api.github.com/users/kton/following{/other_user}","gists_url":"https://api.github.com/users/kton/gists{/gist_id}","starred_url":"https://api.github.com/users/kton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kton/subscriptions","organizations_url":"https://api.github.com/users/kton/orgs","repos_url":"https://api.github.com/users/kton/repos","events_url":"https://api.github.com/users/kton/events{/privacy}","received_events_url":"https://api.github.com/users/kton/received_events","type":"User","site_admin":false},"created_at":"2015-06-15T11:04:46Z","updated_at":"2015-06-15T11:04:46Z","body":"Something like this ought to work:\r\n\r\n    setTimeout(function () {\r\n      // m_rgGameData is 'undefined' if stuck at 97/97\r\n      if (!g_Minigame.CurrentScene().m_rgGameData)\r\n        window.location.reload(); // reloads page if game hasn't loaded\r\n    },30000); // evaluate after 30s delay"}}