diff options
Diffstat (limited to 'background_scripts')
| -rw-r--r-- | background_scripts/main.coffee | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/background_scripts/main.coffee b/background_scripts/main.coffee index 118d9839..56b6e313 100644 --- a/background_scripts/main.coffee +++ b/background_scripts/main.coffee @@ -79,10 +79,8 @@ isEnabledForUrl = (request) -> isEnabled = false if request.url.match(regexp) { isEnabledForUrl: isEnabled } -# # Called by the popup UI. Strips leading/trailing whitespace and ignores empty strings. -# -addExcludedUrl = (url) -> +root.addExcludedUrl = (url) -> return unless url = url.trim() excludedUrls = Settings.get("excludedUrls") @@ -97,10 +95,9 @@ getShowAdvancedCommands = (request) -> Settings.get("helpDialog_showAdvancedComm saveHelpDialogSettings = (request) -> Settings.set("helpDialog_showAdvancedCommands", request.showAdvancedCommands) -# # Retrieves the help dialog HTML template from a file, and populates it with the latest keybindings. -# -helpDialogHtml = (showUnboundCommands, showCommandNames, customTitle) -> +# This is called by options.coffee. +root.helpDialogHtml = (showUnboundCommands, showCommandNames, customTitle) -> commandsToKey = {} for key of Commands.keyToCommandRegistry command = Commands.keyToCommandRegistry[key].command @@ -393,7 +390,8 @@ populateSingleKeyCommands = -> if (getActualKeyStrokeLength(key) == 1) singleKeyCommands.push(key) -refreshCompletionKeysAfterMappingSave = -> +# Invoked by options.coffee. +root.refreshCompletionKeysAfterMappingSave = -> validFirstKeys = {} singleKeyCommands = [] |
