Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(177)

Unified Diff: web/apps/logdog-view/index.html

Issue 2748973004: LogDog: index.html determines app parameters. (Closed)
Patch Set: Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « web/apps/logdog-app/index.html ('k') | web/inc/logdog-app-base/logdog-app-base.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: web/apps/logdog-view/index.html
diff --git a/web/apps/logdog-view/index.html b/web/apps/logdog-view/index.html
index 845b16fbe6884fb37b11203cac99dc74a63b182c..ecf1769aa23f42fb11c2def6056822def51d7826 100644
--- a/web/apps/logdog-view/index.html
+++ b/web/apps/logdog-view/index.html
@@ -13,9 +13,6 @@
<!-- Setup Polymer -->
<script src="inc/bower_components/webcomponentsjs/webcomponents-lite.min.js">
- <script>
- window.Polymer = window.Polymer || {};
- window.Polymer.dom = 'shadow';
</script>
<!-- Because this project uses vulcanize this should be your only html import
@@ -44,8 +41,12 @@
// Learn more about auto-binding templates at http://goo.gl/Dx1u2g
var app = document.querySelector('#app');
- // Set up our default LogDog pRPC host.
- app.host = logdog.host;
+ // Set up our default LogDog host.
+ app.host = window.location.hostname;
+ if (app.host === "localhost") {
+ // Running locally. Bind to our development instance.
+ app.host = "luci-logdog-dev.appspot.com";
+ }
</script>
</body>
« no previous file with comments | « web/apps/logdog-app/index.html ('k') | web/inc/logdog-app-base/logdog-app-base.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698