Comments (3)
@shauvet github notification比较多回复得慢了,你用的electron版本比较高,试试设置一下 app.enableRendererProcessReuse
另外你最好用v7的版本,我担心还会有其他适配问题。
from geektime-electron.
@shauvet github notification比较多回复得慢了,你用的electron版本比较高,试试设置一下
app.enableRendererProcessReuse
另外你最好用v7的版本,我担心还会有其他适配问题。
谢谢老师回复,两种方法我都试过了,设置 app.enableRendererProcessReuse,和使用v7的版本,目前降到7.3.2了,还是一样的问题,猜测是哪里写的有问题吧,但是跟您课程对比没找出来区别。。。能不能麻烦老师帮忙看下,再次感谢老师
from geektime-electron.
v12之后出于安全考虑,默认关闭在渲染进程中使用node,以及默认启用上下文隔离,如果你要跑起来的话,需要设置下:
但是这样不是官方推荐的方式,最好还是在preload中去封装下渲染进程对electron API和node API的调用。具体做法参考官方文档中的上下文隔离(https://www.electronjs.org/zh/docs/latest/tutorial/context-isolation)。我用的17版本,按照preload的方式是可行的。
from geektime-electron.
Related Issues (7)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from geektime-electron.