aboutsummaryrefslogtreecommitdiffstats
path: root/content_scripts
diff options
context:
space:
mode:
authormrmr19932017-08-15 16:51:49 +0100
committermrmr19932017-11-18 12:37:58 +0000
commitac79e7500c06607e86d2dcfa4cb790b7ed5befe7 (patch)
tree0c2837c115f07f9a99e6990dfde1c42b03ef4103 /content_scripts
parent5802b33654b5a0aeb7f331c6c392a1c61962f6ec (diff)
downloadvimium-ac79e7500c06607e86d2dcfa4cb790b7ed5befe7.tar.bz2
FF: Use HUD.copyToClipboard for copyCurrentUrl
Diffstat (limited to 'content_scripts')
-rw-r--r--content_scripts/mode_normal.coffee2
1 files changed, 1 insertions, 1 deletions
diff --git a/content_scripts/mode_normal.coffee b/content_scripts/mode_normal.coffee
index 027ad22f..738f009e 100644
--- a/content_scripts/mode_normal.coffee
+++ b/content_scripts/mode_normal.coffee
@@ -91,7 +91,7 @@ NormalModeCommands =
copyCurrentUrl: ->
chrome.runtime.sendMessage { handler: "getCurrentTabUrl" }, (url) ->
- chrome.runtime.sendMessage { handler: "copyToClipboard", data: url }
+ HUD.copyToClipboard url
url = url[0..25] + "...." if 28 < url.length
HUD.showForDuration("Yanked #{url}", 2000)