Git Product home page Git Product logo

Comments (3)

dengyaolong avatar dengyaolong commented on August 11, 2024 1

@shauvet github notification比较多回复得慢了,你用的electron版本比较高,试试设置一下 app.enableRendererProcessReuse
另外你最好用v7的版本,我担心还会有其他适配问题。

from geektime-electron.

shauvet avatar shauvet commented on August 11, 2024

@shauvet github notification比较多回复得慢了,你用的electron版本比较高,试试设置一下 app.enableRendererProcessReuse
另外你最好用v7的版本,我担心还会有其他适配问题。

谢谢老师回复,两种方法我都试过了,设置 app.enableRendererProcessReuse,和使用v7的版本,目前降到7.3.2了,还是一样的问题,猜测是哪里写的有问题吧,但是跟您课程对比没找出来区别。。。能不能麻烦老师帮忙看下,再次感谢老师

from geektime-electron.

lttecho avatar lttecho commented on August 11, 2024

v12之后出于安全考虑,默认关闭在渲染进程中使用node,以及默认启用上下文隔离,如果你要跑起来的话,需要设置下:
image
但是这样不是官方推荐的方式,最好还是在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 photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.