Index: remoting/webapp/remoting.js |
diff --git a/remoting/webapp/remoting.js b/remoting/webapp/remoting.js |
index 4e34d50025ce4c1988512f7e03bf341babfbab04..249d49a2ff6e725069fcad8e3425021712f63a13 100644 |
--- a/remoting/webapp/remoting.js |
+++ b/remoting/webapp/remoting.js |
@@ -61,6 +61,7 @@ remoting.init = function() { |
remoting.fullscreen = new remoting.FullscreenAppsV2(); |
remoting.windowFrame = new remoting.WindowFrame( |
document.getElementById('title-bar')); |
+ remoting.optionsMenu = remoting.windowFrame.createOptionsMenu(); |
} else { |
remoting.oauth2 = new remoting.OAuth2(); |
if (!remoting.oauth2.isAuthenticated()) { |
@@ -68,6 +69,9 @@ remoting.init = function() { |
} |
remoting.identity = remoting.oauth2; |
remoting.fullscreen = new remoting.FullscreenAppsV1(); |
+ remoting.toolbar = new remoting.Toolbar( |
+ document.getElementById('session-toolbar')); |
+ remoting.optionsMenu = remoting.toolbar.createOptionsMenu(); |
} |
remoting.stats = new remoting.ConnectionStats( |
document.getElementById('statistics')); |
@@ -78,8 +82,6 @@ remoting.init = function() { |
document.getElementById('host-list-error-message'), |
document.getElementById('host-list-refresh-failed-button'), |
document.getElementById('host-list-loading-indicator')); |
- remoting.toolbar = new remoting.Toolbar( |
- document.getElementById('session-toolbar')); |
remoting.clipboard = new remoting.Clipboard(); |
var sandbox = /** @type {HTMLIFrameElement} */ |
document.getElementById('wcs-sandbox'); |