Skip to content

Commit

Permalink
-Added force use of new homescreen, just like in the chromecast devic…
Browse files Browse the repository at this point in the history
…e itself

-Updated useragent for requests
  • Loading branch information
jloutsenhizer committed Dec 8, 2013
1 parent c5641df commit a71247b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion extension/js/ChromecastApp.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ define(["WebRequestResponder","WebSocket"],function(Responder,WebSocket){
}
});

var userAgent = "Mozilla/5.0 (CrKey - 0.9.3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/30.0.1573.2 Safari/537.36";
var userAgent = "Mozilla/5.0 (CrKey armv7l 1.3.14651) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/31.0.1650.0 Safari/537.36";

ChromecastApp.prototype.launch = function(postData,onLaunched){
if (postData == null) postData = "";
Expand Down
4 changes: 4 additions & 0 deletions extension/js/appview.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@
params[parts[0]] = decodeURIComponent(parts[1]);
}

if (params.remote_url == "https://clients3.google.com/cast/chromecast/home?chs=1"){
params.remote_url = "https://clients3.google.com/cast/chromecast/home/v/c9541b08";
}

webview = $("#appview")[0]
if (params.user_agent != null && webview.setUserAgentOverride)
webview.setUserAgentOverride(params.user_agent);
Expand Down
2 changes: 1 addition & 1 deletion extension/manifest.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "CR Cast",
"version": "0.6.8",
"version": "0.6.9",
"manifest_version": 2,
"description": "Turn your chrome browser into a chromecast receiver!!",
"offline_enabled": false,
Expand Down

0 comments on commit a71247b

Please sign in to comment.