Skip to content

Commit

Permalink
- On the fly update of bookmarks and collections
Browse files Browse the repository at this point in the history
- Upgrade dependencies
  • Loading branch information
Rustem Mussabekov committed Dec 15, 2020
1 parent 6ba1cd7 commit 17913d8
Show file tree
Hide file tree
Showing 3 changed files with 247 additions and 208 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "Raindrop.io",
"productName": "Raindrop.io",
"version": "5.2.46",
"version": "5.2.47",
"description": "Crossplatform bookmarking app",
"main": "src/index.js",
"repository": {
Expand Down Expand Up @@ -39,7 +39,7 @@
"@electron-forge/maker-squirrel": "6.0.0-beta.52",
"@electron-forge/maker-zip": "6.0.0-beta.52",
"@electron-forge/publisher-github": "6.0.0-beta.52",
"electron": "10.1.x",
"electron": "11.1.x",
"shx": "^0.3.2"
}
}
7 changes: 4 additions & 3 deletions src/contextMenu.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
const { app } = require('electron')
const { app, remote } = require('electron')
const isDev = require('electron-is-dev')
const contextMenu = require('electron-context-menu')

module.exports = function() {
app.on('web-contents-created', (e, window) => {
app.on('web-contents-created', (e, win) => {
contextMenu({
window,
//instead of just window: win there is fix for electron 11
window: win.getType && win.getType() == 'webview' ? win : win.webContents || (win.getWebContentsId && remote.webContents.fromId(win.getWebContentsId())),
showCopyImageAddress: true,
showSaveImageAs: true,
showServices: true,
Expand Down
Loading

0 comments on commit 17913d8

Please sign in to comment.