Make the site name configurable in perf dashboard
[WebKit-https.git] / Websites / perf.webkit.org / public / v2 / manifest.js
index 3e2f7a8d175adf89d6cfcd717c203924d7350a5c..518648665c555e1cf8cc3c5ae0b55cb5b0ebe855 100644 (file)
@@ -214,6 +214,12 @@ App.MetricSerializer = App.PlatformSerializer = DS.RESTSerializer.extend({
             id++;
         }
 
+        var siteTitle = payload['siteTitle'];
+        if (siteTitle) {
+            App.Manifest.set('siteTitle', siteTitle);
+            document.title = siteTitle;
+        }
+
         return results;
     },
     _normalizeIdMap: function (idMap)