-
-
Notifications
You must be signed in to change notification settings - Fork 157
Open
Description
We use the context menu (v4.0.4) like this:
import contextMenu from 'electron-context-menu'
let win: BrowserWindow | null
const windowConfig = {
title: 'My App',
icon: '../favicon.ico',
width: 1300,
height: 700,
autoHideMenuBar: true,
webPreferences: {
preload: path.join(__dirname, 'preload.js')
}
}
contextMenu({
showInspectElement: false,
showSearchWithGoogle: false,
showSaveImageAs: true,
showLearnSpelling: false,
showLookUpSelection: false,
prepend: (defaultActions, params) => [
{
label: 'Open in New Window',
visible: params.linkURL.length > 0,
click: () => {
const newWin = new BrowserWindow(windowConfig)
newWin.loadURL(params.linkURL)
}
}
]
})
However, when we try to save an image bigger then (let say 2Mb), we get the following error:
What could be the cause?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels
