Currently the extension hits a JavaScript error if the parkrunner being viewed hasn't recorded any runs. The error is being thrown from within a console.log statement: this PR fixes the issue by skipping this console.log statement if no runs have been recorded.
Currently the extension hits a JavaScript error if the parkrunner being viewed hasn't recorded any runs. The error is being thrown from within a
console.log
statement: this PR fixes the issue by skipping thisconsole.log
statement if no runs have been recorded.