{"action":"created","issue":{"url":"https://api.github.com/repos/MikeRogers0/LivePage/issues/70","repository_url":"https://api.github.com/repos/MikeRogers0/LivePage","labels_url":"https://api.github.com/repos/MikeRogers0/LivePage/issues/70/labels{/name}","comments_url":"https://api.github.com/repos/MikeRogers0/LivePage/issues/70/comments","events_url":"https://api.github.com/repos/MikeRogers0/LivePage/issues/70/events","html_url":"https://github.com/MikeRogers0/LivePage/issues/70","id":191421088,"number":70,"title":"Cannot read property 'refresh_rate' of undefined","user":{"login":"codeandcats","id":6035934,"avatar_url":"https://avatars.githubusercontent.com/u/6035934?v=3","gravatar_id":"","url":"https://api.github.com/users/codeandcats","html_url":"https://github.com/codeandcats","followers_url":"https://api.github.com/users/codeandcats/followers","following_url":"https://api.github.com/users/codeandcats/following{/other_user}","gists_url":"https://api.github.com/users/codeandcats/gists{/gist_id}","starred_url":"https://api.github.com/users/codeandcats/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codeandcats/subscriptions","organizations_url":"https://api.github.com/users/codeandcats/orgs","repos_url":"https://api.github.com/users/codeandcats/repos","events_url":"https://api.github.com/users/codeandcats/events{/privacy}","received_events_url":"https://api.github.com/users/codeandcats/received_events","type":"User","site_admin":false},"labels":[{"id":398643795,"url":"https://api.github.com/repos/MikeRogers0/LivePage/labels/Bug","name":"Bug","color":"b60205","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-11-24T02:37:13Z","updated_at":"2016-11-24T07:35:55Z","closed_at":null,"body":"Hi Mike,\r\n\r\nI freaking love this extension so much. Thanks for creating it. There's just one niggling problem I have with it constantly which is very frustrating when debugging an web app I'm working on. LivePage will frequently pop up this error when reloading a page:\r\n\r\n```\r\nlivepage.js:241 Uncaught TypeError: Cannot read property 'refresh_rate' of undefined\r\n```\r\n\r\nHere is the offending code:\r\n```javascript\r\n/*\r\n * Triggers a resource check.\r\n */\r\nlivePage.prototype.check = function() {\r\n  // Que up the next resource, if it dosen't exist start again.\r\n  this.lastChecked++;\r\n  if (this.resources[this.lastChecked] == undefined) {\r\n    this.lastChecked = 0;\r\n    if (this.resources[this.lastChecked] == undefined) { // Nothing left to check\r\n      window.$livePage.options.enabled = false;\r\n      return;\r\n    }\r\n  }\r\n\r\n  this.resources[this.lastChecked].check(function(){\r\n    setTimeout(function() { \r\n      if( typeof(window.$livePage.checkBatch) == \"function\" ){\r\n        window.$livePage.checkBatch();\r\n      }\r\n    }, window.$livePage.options.refresh_rate); // <----- ERRORS ON THIS LINE\r\n  });\r\n}\r\n```\r\n\r\nNote that is doesn't occur every time, but most of the time.\r\n\r\nIf you were able to push out a simple fix for this, it would solve this long running issue I've had with this extension and effectively make it perfect imo."},"comment":{"url":"https://api.github.com/repos/MikeRogers0/LivePage/issues/comments/262709066","html_url":"https://github.com/MikeRogers0/LivePage/issues/70#issuecomment-262709066","issue_url":"https://api.github.com/repos/MikeRogers0/LivePage/issues/70","id":262709066,"user":{"login":"codeandcats","id":6035934,"avatar_url":"https://avatars.githubusercontent.com/u/6035934?v=3","gravatar_id":"","url":"https://api.github.com/users/codeandcats","html_url":"https://github.com/codeandcats","followers_url":"https://api.github.com/users/codeandcats/followers","following_url":"https://api.github.com/users/codeandcats/following{/other_user}","gists_url":"https://api.github.com/users/codeandcats/gists{/gist_id}","starred_url":"https://api.github.com/users/codeandcats/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codeandcats/subscriptions","organizations_url":"https://api.github.com/users/codeandcats/orgs","repos_url":"https://api.github.com/users/codeandcats/repos","events_url":"https://api.github.com/users/codeandcats/events{/privacy}","received_events_url":"https://api.github.com/users/codeandcats/received_events","type":"User","site_admin":false},"created_at":"2016-11-24T07:35:55Z","updated_at":"2016-11-24T07:35:55Z","body":"No worries at all. Actually I'm in Melbourne."}}
{"actor":{"display_login":"codeandcats"}}