diff options
author | thlo <t.lohmar@gmx.de> | 2012-12-27 11:20:42 +0100 |
---|---|---|
committer | thlo <t.lohmar@gmx.de> | 2012-12-27 11:20:42 +0100 |
commit | 8fa64fb20b9f338d8f578b9f6aceae3ce8d937d8 (patch) | |
tree | f803e45b9f3b6f87f1f1da31ecefbf38096c03e4 /smarttv-client/Javascript/Main.js | |
parent | 8f0bf44fd3f08c837a8409378afd09dfb5b12f0f (diff) | |
parent | e13c617a3b97b3707038c31cd18ef49686c36d3d (diff) | |
download | vdr-plugin-smarttvweb-8fa64fb20b9f338d8f578b9f6aceae3ce8d937d8.tar.gz vdr-plugin-smarttvweb-8fa64fb20b9f338d8f578b9f6aceae3ce8d937d8.tar.bz2 |
Merge branch 'master' of projects.vdr-developer.org:vdr-plugin-smarttvweb
Diffstat (limited to 'smarttv-client/Javascript/Main.js')
-rwxr-xr-x | smarttv-client/Javascript/Main.js | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/smarttv-client/Javascript/Main.js b/smarttv-client/Javascript/Main.js index ef92172..fa3c863 100755 --- a/smarttv-client/Javascript/Main.js +++ b/smarttv-client/Javascript/Main.js @@ -38,8 +38,6 @@ var Main = { };
Main.onLoad = function() {
-
-// Config.init("http://192.168.1.122:8000/widget.conf");
Network.init();
Display.init();
@@ -55,6 +53,7 @@ Main.onLoad = function() { };
// Called by Config, when done
+// TODO: Send sendReadyEvent early and show a splash screen during startup
Main.init = function () {
alert("Main.init()");
if ( Player.init() && Audio.init() && Server.init() ) {
@@ -77,7 +76,7 @@ Main.init = function () { document.getElementById("splashScreen").style.display="none";
- widgetAPI.sendReadyEvent();
+ widgetAPI.sendReadyEvent();
}
else {
alert("Failed to initialise");
@@ -86,7 +85,10 @@ Main.init = function () { };
Main.log = function (msg) {
- var XHRObj = new XMLHttpRequest();
+ if (Config.serverUrl == "" )
+ return;
+
+ var XHRObj = new XMLHttpRequest();
XHRObj.open("POST", Config.serverUrl + "/log", true);
XHRObj.send("CLOG: " + msg);
};
|