lazy load chromecast script

This commit is contained in:
Luke Pulverenti 2015-05-17 22:52:52 -04:00
parent 3114742ab7
commit 4b6692c92d
2 changed files with 11 additions and 2 deletions

View File

@ -1811,6 +1811,14 @@ var AppInfo = {};
e.preventDefault();
return false;
});
if (Dashboard.isRunningInCordova()) {
requirejs(['thirdparty/cordova/chromecast']);
} else {
if ($.browser.chrome) {
requirejs(['scripts/chromecast']);
}
}
}
requirejs.config({

View File

@ -0,0 +1 @@