diff options
Diffstat (limited to 'content_scripts')
| -rw-r--r-- | content_scripts/link_hints.coffee | 2 | ||||
| -rw-r--r-- | content_scripts/vimium_frontend.coffee | 7 | 
2 files changed, 2 insertions, 7 deletions
| diff --git a/content_scripts/link_hints.coffee b/content_scripts/link_hints.coffee index d2db5b12..8d5227d5 100644 --- a/content_scripts/link_hints.coffee +++ b/content_scripts/link_hints.coffee @@ -53,7 +53,7 @@ LinkHints =      if (!document.getElementById("vimiumLinkHintCss"))        # linkHintCss is declared by vimiumFrontend.js and contains the user supplied css overrides. -      addCssToPage(linkHintCss, "vimiumLinkHintCss") +      addCssToPage(settings.get("userDefinedLinkHintCss"), "vimiumLinkHintCss")      @setOpenLinkMode(openInNewTab, withQueue, copyLinkUrl)      @buildLinkHints()      # handlerStack is declared by vimiumFrontend.js diff --git a/content_scripts/vimium_frontend.coffee b/content_scripts/vimium_frontend.coffee index 77c9e296..21c366e9 100644 --- a/content_scripts/vimium_frontend.coffee +++ b/content_scripts/vimium_frontend.coffee @@ -19,7 +19,6 @@ isEnabledForUrl = true  # The user's operating system.  currentCompletionKeys = null  validFirstKeys = null -linkHintCss = null  activatedElement = null  # The types in <input type="..."> that we consider for focusInput command. Right now this is recalculated in @@ -46,7 +45,7 @@ settings =    values: {}    loadedValues: 0    valuesToLoad: ["scrollStepSize", "linkHintCharacters", "filterLinkHints", "hideHud", "previousPatterns", -      "nextPatterns", "findModeRawQuery"] +      "nextPatterns", "findModeRawQuery", "userDefinedLinkHintCss"]    isLoaded: false    eventListeners: {} @@ -100,9 +99,6 @@ initializePreDomReady = ->    checkIfEnabledForUrl() -  chrome.extension.sendRequest { handler: "getLinkHintCss" }, (response) -> -    linkHintCss = response.linkHintCss -    refreshCompletionKeys()    # Send the key to the key handler in the background page. @@ -1030,7 +1026,6 @@ window.onbeforeunload = ->  root = exports ? window  root.window = window  root.settings = settings -root.linkHintCss = linkHintCss  root.addCssToPage = addCssToPage  root.HUD = HUD  root.handlerStack = handlerStack | 
