Electron how to read localStorage from renderer process in main process

mainWindow.webContents.executeJavaScript('localStorage.getItem("key");', true)
.then((result) => {
    console.log(result) 
})

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top