Skip to content

Tag: electron

How to overflow auto focus last element

I develop Todo App. İf add to new element, scrollbars not focusing bottom of the page. How can i solve this problem ? Answer You can make use of Element.scrollIntoView() after adding it. For example: For more information’s about compatibility you should have a look at https://developer.mozilla.org/de/do…

Import jQuery with contextBridge

I’m trying to use contextBridge in Electron, but I keep getting an error when I try to require(‘jQuery’) in preload.js. Here is my preload.js: As soon as I put require(‘jQuery’), I get this error: I want to import APIs like this since it improves security and contextIsolation wil…

Should I use Context Isolation with my Electron App

My friend and I are almost done with our project. It’s basically a now playing/miniplayer app for Spotify. When I was checking the render process console, I had one more warning that I wanted to clear. It was about worldSafeExecuteJavaScript being true and how it’s unsafe. I looked farther in to i…

Accessing html elements from another page inside div

So I’m pretty new to html/javascript but i’m working on a project where i’m loading a external html page inside a div, that when loaded looks like so: and inside the ‘#document’ is the external html. This external html contains some titles that can be minimized and maximazed to h…