electron-vue icon indicating copy to clipboard operation
electron-vue copied to clipboard

why preload.js doesn't work

Open DongWenHai opened this issue 5 years ago • 2 comments
trafficstars

I've configured preload.js,but it doesn't work

new BrowserWindow({ resizable:true,//unable scale alwaysOnTop:true, fullscreen:true, acceptFirstMouse:true, autoHideMenuBar:true, frame:false, titleBarStyle:'hidden', webPreferences:{ nodeIntegration:true, nodeIntegrationInWorker:true, devTools:true, preload:require('path').join(__dirname, 'preload.js') } })

Tell me about your development environment.
  • Node version:12.16.3
  • NPM version:6.14.4
  • vue-cli version: (if necessary)
  • Operating System:window

DongWenHai avatar Nov 20 '20 03:11 DongWenHai

have you solved the problem?

joshuafc avatar Jun 30 '21 09:06 joshuafc

No.But I used another framework.


发件人: joshuafc @.> 发送时间: 2021年6月30日 17:43 收件人: SimulatedGREG/electron-vue @.> 抄送: DongWenHai @.>; Author @.> 主题: Re: [SimulatedGREG/electron-vue] why preload.js doesn't work (#1054)

have you solved the problem?

― You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/SimulatedGREG/electron-vue/issues/1054#issuecomment-871253203, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AIEQ4NCTDFQXGZRPAJOTC3LTVLRMDANCNFSM4T4H476Q.

DongWenHai avatar Jul 01 '21 14:07 DongWenHai