diff options
| -rw-r--r-- | res/client.js | 5 | ||||
| -rw-r--r-- | src/client/Main.hx | 1 |
2 files changed, 5 insertions, 1 deletions
diff --git a/res/client.js b/res/client.js index a1fc8fb..24ec1c5 100644 --- a/res/client.js +++ b/res/client.js @@ -1159,6 +1159,9 @@ client_Main.prototype = { if(title.length > 0) { data.title = title; } + if(data.title == null) { + data.title = "Custom Media"; + } if(data.url == null) { data.url = iframe; } @@ -1197,7 +1200,7 @@ client_Main.prototype = { var data = JSON.parse(e.data); var t = data.type; var t1 = t.charAt(0).toLowerCase() + HxOverrides.substr(t,1,null); - haxe_Log.trace("Event: " + data.type,{ fileName : "src/client/Main.hx", lineNumber : 325, className : "client.Main", methodName : "onMessage", customParams : [data[t1]]}); + haxe_Log.trace("Event: " + data.type,{ fileName : "src/client/Main.hx", lineNumber : 326, className : "client.Main", methodName : "onMessage", customParams : [data[t1]]}); switch(data.type) { case "AddVideo": this.player.addVideoItem(data.addVideo.item,data.addVideo.atEnd); diff --git a/src/client/Main.hx b/src/client/Main.hx index 900f841..62fffcc 100644 --- a/src/client/Main.hx +++ b/src/client/Main.hx @@ -274,6 +274,7 @@ class Main { return; } if (title.length > 0) data.title = title; + if (data.title == null) data.title = "Custom Media"; if (data.url == null) data.url = iframe; send({ type: AddVideo, addVideo: { |
