Closed GoogleCodeExporter closed 8 years ago
Original comment by anad...@google.com
on 6 Feb 2014 at 4:41
We already have an internal feature request similar to this.
Original comment by anad...@google.com
on 6 Feb 2014 at 6:47
there is also the bug that the "chrome" object never gets exposed to the global
object when there is no chrome object predefined (e.g. browser != chrome).
it would be nice to have a third state "wrong browser" besides "no extension"
and "still loading extension"
Original comment by p...@zattoo.com
on 13 Feb 2014 at 7:35
I'd discovered that this is now possible with the latest beta extension
(https://plus.google.com/+ShawnShen/posts/aVXSHyceNbR) and code something like
this:
window.__onGCastApiAvailable = function (loaded, errorInfo) {
if (loaded) {
init();
} else {
handleError(errorInfo);
}
};
if (!window.chrome) {
// fire manually
window.__onGCastApiAvailable(false, 'not in chrome browser');
}
Original comment by p...@zattoo.com
on 21 Feb 2014 at 1:04
I've forgot to add that the code needs to be executed before the chrome sender
api library is loaded
Original comment by p...@zattoo.com
on 21 Feb 2014 at 1:11
Paul: you're right.
Original comment by shawns...@google.com
on 21 Feb 2014 at 5:48
Original issue reported on code.google.com by
scaryg...@gmail.com
on 4 Feb 2014 at 11:23Attachments: