summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--remoting/webapp/host_install_dialog.js9
-rw-r--r--remoting/webapp/html/template_main.html2
2 files changed, 8 insertions, 3 deletions
diff --git a/remoting/webapp/host_install_dialog.js b/remoting/webapp/host_install_dialog.js
index f94cca6..71bf84d 100644
--- a/remoting/webapp/host_install_dialog.js
+++ b/remoting/webapp/host_install_dialog.js
@@ -83,7 +83,13 @@ remoting.HostInstallDialog.prototype.show = function(
}
// Start downloading the package.
- window.location = hostPackageUrl;
+ if (remoting.isAppsV2) {
+ // TODO(jamiewalch): Use chrome.downloads when it is available to
+ // apps v2 (http://crbug.com/174046)
+ window.open(hostPackageUrl);
+ } else {
+ window.location = hostPackageUrl;
+ }
/** @type {function(remoting.HostController.AsyncResult):void} */
this.onDoneHandler_ = onDone;
@@ -134,4 +140,3 @@ remoting.HostInstallDialog.prototype.onRetryClicked_ = function() {
'click', this.onCancelClickedHandler_, false);
remoting.setMode(remoting.AppMode.HOST_INSTALL_PROMPT);
};
-
diff --git a/remoting/webapp/html/template_main.html b/remoting/webapp/html/template_main.html
index 78e738e..e49551d 100644
--- a/remoting/webapp/html/template_main.html
+++ b/remoting/webapp/html/template_main.html
@@ -50,7 +50,7 @@ found in the LICENSE file.
<meta-include src="webapp/html/dialog_auth.html"/>
<div class="dialog-screen"
- data-ui-mode="home.host home.client home.history home.confirm-host-delete home.host-setup home.token-refresh-failed home.manage-pairings"
+ data-ui-mode="home.host home.client home.history home.confirm-host-delete home.host-setup home.token-refresh-failed home.manage-pairings home.host-setup home.host-install"
hidden></div>
<div class="dialog-container"