kopia lustrzana https://github.com/cyoung/stratux
completed STATUS and SETTINGS pages with context sensitive HELP (without debug)
rodzic
125c052385
commit
4274469f15
|
@ -1,6 +1,8 @@
|
|||
// application constants
|
||||
var URL_SETTINGS_GET = "http://192.168.6.104/getSettings";
|
||||
var URL_SETTINGS_SET = "http://192.168.6.104/setSettings";
|
||||
var URL_HOST_BASE = window.location.hostname;
|
||||
var URL_SETTINGS_GET = "http://" + URL_HOST_BASE + "/getSettings";
|
||||
var URL_SETTINGS_SET = "http://" + URL_HOST_BASE + "/setSettings";
|
||||
|
||||
|
||||
|
||||
// define the module with dependency on mobile-angular-ui
|
||||
|
|
|
@ -12,7 +12,7 @@ function StatusCtrl($rootScope, $scope, $state, $http) {
|
|||
|
||||
if (($scope.socket === undefined) || ($scope.socket === null)) {
|
||||
// socket = new WebSocket('ws://' + window.location.hostname + '/control');
|
||||
socket = new WebSocket('ws://192.168.6.104/control');
|
||||
socket = new WebSocket('ws://' + URL_HOST_BASE + '/control');
|
||||
$scope.socket = socket; // store socket in scope for enter/exit usage
|
||||
}
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue