From b790dbd2aeeb9a72766c6fac71bfb147878cba81 Mon Sep 17 00:00:00 2001 From: RaNaN Date: Thu, 13 Jun 2013 20:22:23 +0200 Subject: fixed font and remote addresses --- pyload/web/app/index.html | 6 ++++-- pyload/web/app/scripts/app.js | 1 - pyload/web/app/styles/font.css | 5 +++-- 3 files changed, 7 insertions(+), 5 deletions(-) (limited to 'pyload/web/app') diff --git a/pyload/web/app/index.html b/pyload/web/app/index.html index 5f2dd4265..42dd005e4 100644 --- a/pyload/web/app/index.html +++ b/pyload/web/app/index.html @@ -8,6 +8,7 @@ + @@ -27,8 +28,9 @@ seconds: ['second', 'seconds'] }; // TODO carefully when translating - window.hostProtocol = 'http://'; - window.hostAddress = 'localhost'; + // TODO: use configured values + window.hostProtocol = window.location.protocol + '//'; + window.hostAddress = window.location.hostname; window.hostPort = '8001'; window.pathPrefix = "/"; diff --git a/pyload/web/app/scripts/app.js b/pyload/web/app/scripts/app.js index ed96cc55e..af5c50b14 100644 --- a/pyload/web/app/scripts/app.js +++ b/pyload/web/app/scripts/app.js @@ -78,7 +78,6 @@ define([ }; App.openWebSocket = function(path) { - // TODO return new WebSocket(window.wsAddress.replace('%s', window.hostAddress) + path); }; diff --git a/pyload/web/app/styles/font.css b/pyload/web/app/styles/font.css index fa2de514b..95d1614a5 100644 --- a/pyload/web/app/styles/font.css +++ b/pyload/web/app/styles/font.css @@ -40,6 +40,7 @@ font-family: 'Abel'; font-style: normal; font-weight: 400; - src: local('Abel'), local('Abel-Regular'), url(../fonts/Abel-Regular.woff) format('woff'); - src: url(../fonts/Abel-Regular.ttf) format('truetype'); + src: local('Abel'), local('Abel-Regular'); + src: url(../fonts/Abel-Regular.woff) format('woff'); + url(../fonts/Abel-Regular.ttf) format('truetype'); } -- cgit v1.2.3