skip to Main Content

Javascript – Sending an object with Next.js and it is showing up as undefined on the page I am sending it to

I am sending an object called footprintsData from my question screen to a result screen as shown below: const footprintsData = { carFootprint: roundedCarFootprint, electricityFootprint: roundedElectricityFootprint, gasFootprint: roundedGasFootprint, commuteFootprint: roundedCommuteFootprint, airTravelFootprint: roundedAirTravelFootprint, totalFootprint: parseFloat(totalFootprint.toFixed(2)), }; router.push({ pathname: "/results", query: {…

VIEW QUESTION

Javascript – How to know if an external URL is loaded successfully from the main process when using window.open() from the renderer process

Is it possible to identify whether an external URL is loaded successfully or not from the main process, when window.open("http://example.com") is called from the renderer process? Something like... mainWindow.webContents.on('did-url-load', () => { // Do something }); mainWindow.webContents.on('did-url-loading-failed', () => {…

VIEW QUESTION
Back To Top
Search