From 090afce266a09ea9f7b78e6be6641c3f17355efe Mon Sep 17 00:00:00 2001 From: TheGoddessInari Date: Tue, 3 Mar 2020 11:33:11 -0800 Subject: [PATCH] Conditionally use remote more consistently. Bump to 4.0.1. --- package.json | 2 +- src/context-menu-builder.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index a98a6b6..a55a22f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "electron-contextmenu-wrapper", - "version": "4.0.0", + "version": "4.0.1", "description": "Sane context menu handler", "scripts": { "doc": "esdoc -c ./esdoc.json", diff --git a/src/context-menu-builder.js b/src/context-menu-builder.js index be5642c..f6bfbfd 100644 --- a/src/context-menu-builder.js +++ b/src/context-menu-builder.js @@ -1,7 +1,7 @@ -const {clipboard, nativeImage, remote, shell} = require('electron'); +const {remote} = require('electron'); const {truncateString, matchesWord} = require('./utility'); -const {Menu, MenuItem} = remote ? remote : require('electron'); +const {clipboard, Menu, MenuItem, nativeImage, shell} = remote ? remote : require('electron'); let d = require('debug')('electron-contextmenu-wrapper:context-menu-builder');