aboutsummaryrefslogtreecommitdiffstats
path: root/background_page.html
diff options
context:
space:
mode:
Diffstat (limited to 'background_page.html')
-rw-r--r--background_page.html9
1 files changed, 8 insertions, 1 deletions
diff --git a/background_page.html b/background_page.html
index 77150244..ee12a77d 100644
--- a/background_page.html
+++ b/background_page.html
@@ -79,7 +79,8 @@
upgradeNotificationClosed: upgradeNotificationClosed,
updateScrollPosition: handleUpdateScrollPosition,
copyToClipboard: copyToClipboard,
- isEnabledForUrl: isEnabledForUrl
+ isEnabledForUrl: isEnabledForUrl,
+ saveHelpDialogSettings: saveHelpDialogSettings
};
// Event handlers
@@ -151,6 +152,10 @@
return { isEnabledForUrl: isEnabled };
}
+ function saveHelpDialogSettings(request) {
+ localStorage["helpDialog_showAdvancedCommands"] = request.showAdvancedCommands;
+ }
+
/*
* Returns the previously saved zoom level for the current tab, or the default zoom level
*/
@@ -186,6 +191,8 @@
showUnboundCommands, showCommandNames));
dialogHtml = dialogHtml.replace("{{version}}", currentVersion);
dialogHtml = dialogHtml.replace("{{title}}", customTitle || "Help");
+ dialogHtml = dialogHtml.replace("{{showAdvancedCommands}}",
+ localStorage["helpDialog_showAdvancedCommands"] == "true");
return dialogHtml;
}