Skip to content

Commit

Permalink
Fix imports
Browse files Browse the repository at this point in the history
  • Loading branch information
bcomnes committed May 1, 2024
1 parent 388a7e2 commit fcf792e
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
15 changes: 13 additions & 2 deletions main/windows/player.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,19 @@ const player = module.exports = {

let alwaysOnTop = false

require('electron-debug')({ showDevTools: 'undocked' })
require('electron-context-menu')()
import('electron-debug').then(({ default: debug }) => {
debug({ showDevTools: 'undocked' })
}).catch(err => {
console.error('Failed to load electron-debug:', err)
})

import('electron-context-menu').then(({ default: contextMenu }) => {
contextMenu({
showSaveImageAs: true
})
}).catch(err => {
console.error('Failed to load electron-context-menu:', err)
})

function init () {
player.windowState = windowStateKeeper({ width: 800, height: 600 })
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@
"classnames": "^2.2.6",
"content-addressable-blob-store": "^5.0.1",
"csjs-inject": "^1.0.1",
"electron-context-menu": "^3.6.1",
"electron-context-menu": "^4.0.0",
"electron-debug": "^4.0.0",
"electron-default-menu": "^1.0.1",
"electron-log": "^5.0.0-beta.16",
Expand Down

0 comments on commit fcf792e

Please sign in to comment.