summaryrefslogtreecommitdiffstats
path: root/chrome/browser/resources/user_manager/user_manager.js
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/resources/user_manager/user_manager.js')
-rw-r--r--chrome/browser/resources/user_manager/user_manager.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/chrome/browser/resources/user_manager/user_manager.js b/chrome/browser/resources/user_manager/user_manager.js
index 66f6dcc..b087331 100644
--- a/chrome/browser/resources/user_manager/user_manager.js
+++ b/chrome/browser/resources/user_manager/user_manager.js
@@ -40,6 +40,10 @@ cr.define('cr.ui', function() {
// logged in and the screen is "locked", so we must re-enabled it
$('add-user-header-bar-item').hidden = false;
+ // Disable the context menu, as the Print/Inspect element items don't
+ // make sense when displayed as a widget.
+ document.addEventListener('contextmenu', function(e) {e.preventDefault();});
+
var hash = window.location.hash;
if (hash && hash == '#tutorial')
UserManagerTutorial.startTutorial();