From 0fb2cdddce5e06e3a17fa24bc62ca410e7ef8a95 Mon Sep 17 00:00:00 2001 From: Takao Moriyama Date: Tue, 4 Jul 2017 18:22:55 +0900 Subject: [PATCH] Allow remote access to Intu dashboard --- etc/shared/www/js/TopicClient.js | 2 +- etc/shared/www/js/component/audio/audio.html | 4 ++-- etc/shared/www/js/component/camera/camera.html | 4 ++-- etc/shared/www/js/partials/main.html | 6 +++--- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/etc/shared/www/js/TopicClient.js b/etc/shared/www/js/TopicClient.js index f76e294..016a60a 100644 --- a/etc/shared/www/js/TopicClient.js +++ b/etc/shared/www/js/TopicClient.js @@ -178,7 +178,7 @@ var TopicClient = (function () { return { getInstance: function() { if(!instance) { - instance = createInstance('127.0.0.1', 9443); + instance = createInstance(location.hostname, location.port); } return instance; diff --git a/etc/shared/www/js/component/audio/audio.html b/etc/shared/www/js/component/audio/audio.html index 8cf35a7..e837077 100644 --- a/etc/shared/www/js/component/audio/audio.html +++ b/etc/shared/www/js/component/audio/audio.html @@ -1,5 +1,5 @@
- Card image cap + Card image cap

{{ text.transcription }}

@@ -7,4 +7,4 @@
-
\ No newline at end of file +
diff --git a/etc/shared/www/js/component/camera/camera.html b/etc/shared/www/js/component/camera/camera.html index 21a1bcf..0723290 100644 --- a/etc/shared/www/js/component/camera/camera.html +++ b/etc/shared/www/js/component/camera/camera.html @@ -1,8 +1,8 @@
- +
-
\ No newline at end of file + diff --git a/etc/shared/www/js/partials/main.html b/etc/shared/www/js/partials/main.html index 1e9df20..f54bfd5 100644 --- a/etc/shared/www/js/partials/main.html +++ b/etc/shared/www/js/partials/main.html @@ -5,11 +5,11 @@
- +
- Card image cap + Card image cap

{{ text.transcription }}

@@ -116,4 +116,4 @@
-
\ No newline at end of file +