aboutsummaryrefslogtreecommitdiffstats
path: root/src/webview/contextMenuBuilder.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/webview/contextMenuBuilder.js')
-rw-r--r--src/webview/contextMenuBuilder.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/webview/contextMenuBuilder.js b/src/webview/contextMenuBuilder.js
index 63eed2ebe..2598dbf03 100644
--- a/src/webview/contextMenuBuilder.js
+++ b/src/webview/contextMenuBuilder.js
@@ -61,7 +61,7 @@ module.exports = class ContextMenuBuilder {
61 * @param {function} processMenu If passed, this method will be passed the menu to change 61 * @param {function} processMenu If passed, this method will be passed the menu to change
62 * it prior to display. Signature: (menu, info) => menu 62 * it prior to display. Signature: (menu, info) => menu
63 */ 63 */
64 constructor(webContents, debugMode = false, processMenu = m => m) { 64 constructor(webContents, debugMode = false, processMenu = (m) => m) {
65 this.debugMode = debugMode; 65 this.debugMode = debugMode;
66 this.processMenu = processMenu; 66 this.processMenu = processMenu;
67 this.menu = null; 67 this.menu = null;
@@ -320,7 +320,7 @@ module.exports = class ContextMenuBuilder {
320 label: this.stringTable.copyImage(), 320 label: this.stringTable.copyImage(),
321 click: () => { 321 click: () => {
322 const result = this.convertImageToBase64(menuInfo.srcURL, 322 const result = this.convertImageToBase64(menuInfo.srcURL,
323 dataURL => clipboard.writeImage(nativeImage.createFromDataURL(dataURL))); 323 (dataURL) => clipboard.writeImage(nativeImage.createFromDataURL(dataURL)));
324 324
325 this._sendNotificationOnClipboardEvent(menuInfo.clipboardNotifications, () => `Image copied from URL: ${menuInfo.srcURL}`); 325 this._sendNotificationOnClipboardEvent(menuInfo.clipboardNotifications, () => `Image copied from URL: ${menuInfo.srcURL}`);
326 return result; 326 return result;