why optional chaining operator cannot work in electron's tutorial-preload

i’m learning electron’s docments by myself. in this example https://fiddle.electronjs.org/launch?target=electron/v26.1.0/docs/fiddles/tutorial-preload https://github.com/electron/electron/tree/v26.1.0/docs/fiddles/tutorial-preload i tried to add an optional chaining operator in renderer.js like this const information = document.getElementById(‘info’) information.innerText = `This app is using Chrome (v${window.versions.chrome()}), Node.js (v${window.versions.node()}), and Electron (v${window.versions.electron()})` to const information = document.getElementById(‘info’) information?.innerText = `This app is using Chrome (v${window.versions.chrome()}), Node.js (v${window.versions.node()}),… Read More why optional chaining operator cannot work in electron's tutorial-preload

Modal window that does not appear after the click

I’m new to React js and i’m trying to integrate a modal window in my electron software. I tried the following link example: https://medium.com/tinyso/how-to-create-a-modal-component-in-react-from-basic-to-advanced-a3357a2a716a and it worked at first except that when I clicked on the box, the modal window was displayed underneath the whole page when it should be displayed on top. I had… Read More Modal window that does not appear after the click

How can I get this code to make LEDs linked to my arduino flash at either the value the dial outputs, or no more than a determined value?

Before I get started I want to make it clear I am still a beginner in both C++ and Arduino electronics, so the answer may be painfully obvious to someone with even a week more experience than me. But to me, it is a total mystery. Thank you for any help. To begin this is… Read More How can I get this code to make LEDs linked to my arduino flash at either the value the dial outputs, or no more than a determined value?

OAuth login in separate window/browser with Electron

I’m working on an Electron app connected to a backend on AWS that handles the verification and creation of the user. If it matters I’m building the app with React. Basically the backend flow is: Navigates to backend.com/oauth/login Backend prepares OAuth config, redirects to the Discord.com authentication url User authenticates, redirects to backend.com/oauth/callback with the… Read More OAuth login in separate window/browser with Electron