perf: fix homepage chart header links

On the homepage, where no branch is specified in the query parameter,
the generated link for each chart's header will specify branch=null as a
query parameter. This is of course broken, and leads to a failure to
fetch git history when clicking the link.

Let's assume the same thing the server does when no branch is specified,
and that's that the branch is "master."

Thanks to Carlos Amedee for noticing this and letting me know.

Change-Id: I0bb0675dcce7f5129c908cf7ac213a5e3387a242
Reviewed-on: https://go-review.googlesource.com/c/build/+/656015
Reviewed-by: Carlos Amedee <carlos@golang.org>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
diff --git a/perf/app/dashboard/index.html b/perf/app/dashboard/index.html
index 0c885e6..d3fb573 100644
--- a/perf/app/dashboard/index.html
+++ b/perf/app/dashboard/index.html
@@ -513,6 +513,10 @@
 let unit = (new URLSearchParams(window.location.search)).get('unit');
 let platform = (new URLSearchParams(window.location.search)).get('platform');
 let goBranch = (new URLSearchParams(window.location.search)).get('branch');
+if (!goBranch) {
+	// Assume the same thing the server does when no branch is specified.
+	goBranch = "master";
+}
 let dataURL = './data.json' + window.location.search; // Pass through all URL params.
 fetch(dataURL)
 	.then(response => {