diff options
| author | mrmr1993 | 2017-08-15 18:54:35 +0100 | 
|---|---|---|
| committer | mrmr1993 | 2017-11-18 12:38:10 +0000 | 
| commit | 05604d8965da712b1709d0458fa1f3ca7a1d7f2f (patch) | |
| tree | f1be925934e1a52519cae084d3339a96b333f474 | |
| parent | fb25b26c06eae7d00c6cfe81a7f8b9068724af03 (diff) | |
| download | vimium-05604d8965da712b1709d0458fa1f3ca7a1d7f2f.tar.bz2 | |
FF: Use HUD.copyToClipboard everywhere
| -rw-r--r-- | content_scripts/link_hints.coffee | 2 | ||||
| -rw-r--r-- | content_scripts/mode_visual.coffee | 2 | ||||
| -rw-r--r-- | pages/help_dialog.coffee | 2 | 
3 files changed, 3 insertions, 3 deletions
| diff --git a/content_scripts/link_hints.coffee b/content_scripts/link_hints.coffee index 1e4670dd..f57ec6c7 100644 --- a/content_scripts/link_hints.coffee +++ b/content_scripts/link_hints.coffee @@ -31,7 +31,7 @@ COPY_LINK_URL =    indicator: "Copy link URL to Clipboard"    linkActivator: (link) ->      if link.href? -      chrome.runtime.sendMessage handler: "copyToClipboard", data: link.href +      HUD.copyToClipboard link.href        url = link.href        url = url[0..25] + "...." if 28 < url.length        HUD.showForDuration "Yanked #{url}", 2000 diff --git a/content_scripts/mode_visual.coffee b/content_scripts/mode_visual.coffee index f99e42f9..4c6578cd 100644 --- a/content_scripts/mode_visual.coffee +++ b/content_scripts/mode_visual.coffee @@ -312,7 +312,7 @@ class VisualMode extends KeyHandlerMode    yank: (args = {}) ->      @yankedText = @selection.toString()      @exit() -    chrome.runtime.sendMessage handler: "copyToClipboard", data: @yankedText +    HUD.copyToClipboard @yankedText      message = @yankedText.replace /\s+/g, " "      message = message[...12] + "..." if 15 < @yankedText.length diff --git a/pages/help_dialog.coffee b/pages/help_dialog.coffee index f36155e4..08180a72 100644 --- a/pages/help_dialog.coffee +++ b/pages/help_dialog.coffee @@ -83,7 +83,7 @@ HelpDialog =                commandNameElement.textContent = command.command                commandNameElement.title = "Click to copy \"#{command.command}\" to clipboard."                commandNameElement.addEventListener "click", -> -                chrome.runtime.sendMessage handler: "copyToClipboard", data: commandNameElement.textContent +                HUD.copyToClipboard commandNameElement.textContent                  HUD.showForDuration("Yanked #{commandNameElement.textContent}.", 2000)        @showAdvancedCommands(@getShowAdvancedCommands()) | 
