Electron - Not allowed to load local resource

后端 未结 10 1951
夕颜
夕颜 2020-12-28 14:05

Evening,
I\'m looking into using electron to package an existing angular2 build. I thought I had a dry run working but the actual packaging seems to be failing (see fina

10条回答
  •  臣服心动
    2020-12-28 14:52

    You are just missing a '.' here. You only need to put relative path instead of absolute path.

    win.loadFile('./dist/index.html');
    

提交回复
热议问题