diff options
| author | Stephen Blott | 2016-02-28 14:50:44 +0000 |
|---|---|---|
| committer | Stephen Blott | 2016-02-28 14:50:44 +0000 |
| commit | 0a5f3cc10d5c70aa79adb224cf324ca4b7f58702 (patch) | |
| tree | 6f7376222cb0fa91be58abb6d3561fd2d2e32f28 | |
| parent | eb2eb7c4368108fcd0e1472f6ef34ca2416b5371 (diff) | |
| download | vimium-0a5f3cc10d5c70aa79adb224cf324ca4b7f58702.tar.bz2 | |
Remove some legacy (and unused) code.
| -rw-r--r-- | content_scripts/ui_component.coffee | 5 | ||||
| -rw-r--r-- | content_scripts/vimium_frontend.coffee | 4 |
2 files changed, 1 insertions, 8 deletions
diff --git a/content_scripts/ui_component.coffee b/content_scripts/ui_component.coffee index 74b58b82..efc16f99 100644 --- a/content_scripts/ui_component.coffee +++ b/content_scripts/ui_component.coffee @@ -102,11 +102,6 @@ class UIComponent message: name: "focusFrame" frameId: sourceFrameId - highlight: false - # Note(smblott) Disabled prior to 1.50 (or post 1.49) release. - # The UX around flashing the frame isn't quite right yet. We want the frame to flash only if the - # user exits the Vomnibar with Escape. - highlightOnlyIfNotTop: false # true if windowIsFocused() # We already have the focus. diff --git a/content_scripts/vimium_frontend.coffee b/content_scripts/vimium_frontend.coffee index 63f6ee44..aab92a85 100644 --- a/content_scripts/vimium_frontend.coffee +++ b/content_scripts/vimium_frontend.coffee @@ -300,9 +300,7 @@ focusThisFrame = (request) -> chrome.runtime.sendMessage({ handler: "nextFrame", frameId: frameId }) return window.focus() - shouldHighlight = request.highlight - shouldHighlight ||= request.highlightOnlyIfNotTop and not DomUtils.isTopFrame() - flashFrame() if shouldHighlight + flashFrame() if request.highlight extend window, scrollToBottom: -> |
