Skip to content

Commit

Permalink
Conditionally use remote more consistently. Bump to 4.0.1.
Browse files Browse the repository at this point in the history
  • Loading branch information
TheGoddessInari committed Mar 3, 2020
1 parent b4a1a1d commit 090afce
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
4 changes: 2 additions & 2 deletions src/context-menu-builder.js
Original file line number Diff line number Diff line change
@@ -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');

Expand Down

0 comments on commit 090afce

Please sign in to comment.