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

Unified Diff: web/apps/logdog-app/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 | « no previous file | web/apps/logdog-view/index.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: web/apps/logdog-app/index.html
diff --git a/web/apps/logdog-app/index.html b/web/apps/logdog-app/index.html
index 1ad5c5a97c7c7c4e629b1619ffb1d8a4500d9291..c0ebf39284b0fb7822f0fdcd1de45f8559372013 100644
--- a/web/apps/logdog-app/index.html
+++ b/web/apps/logdog-app/index.html
@@ -11,10 +11,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
in this file. All other imports should go in elements.html -->
@@ -45,8 +41,12 @@
// Sets app default base URL.
app.baseUrl = window.location.pathname;
- // 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 | « no previous file | web/apps/logdog-view/index.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698