aboutsummaryrefslogtreecommitdiffstats
path: root/background_scripts
diff options
context:
space:
mode:
Diffstat (limited to 'background_scripts')
-rw-r--r--background_scripts/main.coffee4
1 files changed, 3 insertions, 1 deletions
diff --git a/background_scripts/main.coffee b/background_scripts/main.coffee
index c1c8dfc8..37d219df 100644
--- a/background_scripts/main.coffee
+++ b/background_scripts/main.coffee
@@ -168,9 +168,10 @@ upgradeNotificationClosed = (request) ->
sendRequestToAllTabs({ name: "hideUpgradeNotification" })
#
-# Copies some data (request.data) to the clipboard.
+# Copies or pastes some data (request.data) to/from the clipboard.
#
copyToClipboard = (request) -> Clipboard.copy(request.data)
+pasteFromClipboard = (request) -> Clipboard.paste()
#
# Selects the tab with the ID specified in request.id
@@ -647,6 +648,7 @@ sendRequestHandlers =
upgradeNotificationClosed: upgradeNotificationClosed
updateScrollPosition: handleUpdateScrollPosition
copyToClipboard: copyToClipboard
+ pasteFromClipboard: pasteFromClipboard
isEnabledForUrl: isEnabledForUrl
saveHelpDialogSettings: saveHelpDialogSettings
selectSpecificTab: selectSpecificTab