diff --git a/package.json b/package.json index 17d28276..a1d520fa 100644 --- a/package.json +++ b/package.json @@ -55,7 +55,7 @@ "draft-js": "^0.11.5", "draft-js-list-plugin": "^1.0.2", "draft-js-plugins-editor": "^3.0.0", - "electron-context-menu": "^0.16.0", + "electron-context-menu": "^1.0.0", "electron-debug": "^3.0.0", "electron-log": "^4.1.1", "electron-md-to-pdf": "^2.2.0", diff --git a/src/main/main.ts b/src/main/main.ts index 6cadfca6..c1f1f62d 100644 --- a/src/main/main.ts +++ b/src/main/main.ts @@ -13,7 +13,10 @@ import { getWindow, setWindow } from "./window"; initLogger(); electronDebug(); -contextMenu(); +contextMenu({ + showCopyImage: false, + showSearchWithGoogle: false, +}); async function createWindow(): Promise { const win = new BrowserWindow({ diff --git a/yarn.lock b/yarn.lock index 3e024892..363998da 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4128,13 +4128,13 @@ electron-builder@^22.4.1: update-notifier "^4.1.0" yargs "^15.1.0" -electron-context-menu@^0.16.0: - version "0.16.0" - resolved "https://registry.yarnpkg.com/electron-context-menu/-/electron-context-menu-0.16.0.tgz#4f53b4640e321f536415a625505a908518f5dff7" - integrity sha512-lGr1/nRlNGmU8THc0hl2dYEB5bwXJpsi7vCjjsnsNGJKPZZLY8nHY3xvtjdtwKocErvp1h8wUb19moWenzoGPw== +electron-context-menu@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/electron-context-menu/-/electron-context-menu-1.0.0.tgz#ddf01999e51506dabd84ae3c7f0dab7dea6ef4fe" + integrity sha512-Vg20fMnUv/DQjcTg1F2pFVsufE+t5RhRDLbxMaPG5x7KOcevT7iWnNrenGPgAdPzezVMf/S2blin8jhUxJilcA== dependencies: cli-truncate "^2.0.0" - electron-dl "^1.2.0" + electron-dl "^3.0.0" electron-is-dev "^1.0.1" electron-debug@^3.0.0: @@ -4145,14 +4145,14 @@ electron-debug@^3.0.0: electron-is-dev "^1.1.0" electron-localshortcut "^3.1.0" -electron-dl@^1.2.0: - version "1.14.0" - resolved "https://registry.yarnpkg.com/electron-dl/-/electron-dl-1.14.0.tgz#1466f1b945664ca3d784268307c2b935728177bf" - integrity sha512-4okyei42a1mLsvLK7hLrIfd20EQzB18nIlLTwBV992aMSmTGLUEFRTmO1MfSslGNrzD8nuPuy1l/VxO8so4lig== +electron-dl@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/electron-dl/-/electron-dl-3.0.0.tgz#42c5cb572af44e90b3aa4b709a14abe701bbc31c" + integrity sha512-TeBRv+vQgNVLGf/XLV4EYfYIBMI4TQcw84aDlM8xEm/1Lgxux3PUXDzaingivf+6jMvRojXSRPTHmiWI/6LrqQ== dependencies: ext-name "^5.0.0" - pupa "^1.0.0" - unused-filename "^1.0.0" + pupa "^2.0.1" + unused-filename "^2.1.0" electron-is-accelerator@^0.1.0: version "0.1.2" @@ -8492,11 +8492,6 @@ punycode@^2.1.0, punycode@^2.1.1: resolved "https://registry.yarnpkg.com/punycode/-/punycode-2.1.1.tgz#b58b010ac40c22c5657616c8d2c2c02c7bf479ec" integrity sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A== -pupa@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/pupa/-/pupa-1.0.0.tgz#9a9568a5af7e657b8462a6e9d5328743560ceff6" - integrity sha1-mpVopa9+ZXuEYqbp1TKHQ1YM7/Y= - pupa@^2.0.1: version "2.0.1" resolved "https://registry.yarnpkg.com/pupa/-/pupa-2.0.1.tgz#dbdc9ff48ffbea4a26a069b6f9f7abb051008726" @@ -10740,13 +10735,13 @@ unset-value@^1.0.0: has-value "^0.3.1" isobject "^3.0.0" -unused-filename@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/unused-filename/-/unused-filename-1.0.0.tgz#d340880f71ae2115ebaa1325bef05cc6684469c6" - integrity sha1-00CID3GuIRXrqhMlvvBcxmhEacY= +unused-filename@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/unused-filename/-/unused-filename-2.1.0.tgz#33719c4e8d9644f32d2dec1bc8525c6aaeb4ba51" + integrity sha512-BMiNwJbuWmqCpAM1FqxCTD7lXF97AvfQC8Kr/DIeA6VtvhJaMDupZ82+inbjl5yVP44PcxOuCSxye1QMS0wZyg== dependencies: modify-filename "^1.1.0" - path-exists "^3.0.0" + path-exists "^4.0.0" upath@^1.1.1: version "1.2.0"