Skip to content

Commit

Permalink
add icon when win is created
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaozhu188 committed Jun 11, 2020
1 parent cd650f7 commit b78f61e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/renderer/mixins/videoPlayer.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { LOAD_URL } from '../../main/config'

const { BrowserWindow } = require('electron').remote
const previewIcon = process.env.NODE_ENV === 'development' ? 'public/images/tray.ico' : `${global.__images}/tray.ico`
export default {
created () {
this.videoType = 'mv'
Expand All @@ -25,6 +26,8 @@ export default {
frame: false,
fullscreen: false,
darkTheme: true,
icon: previewIcon,
backgroundColor: '#000000',
webPreferences: {
webSecurity: false,
nodeIntegration: true,
Expand Down

0 comments on commit b78f61e

Please sign in to comment.