I'm using Microsoft Edge in localhost for development.
Website is accessed via http://localhost
I open a popup and want it to post a message to the opener via window.opener.postMessage
My code works with Chrome, and Safari, and even Microsoft Edge when the website is on staging or production.
But when I run in in local mode, the window.opener is undefined.
local modeI assume you meanfile:///instead ofhttp://localhost- possible duplicate of JavaScript window.opener call parent functionlocalhost, with thehttp://It is also not supported in IE if the opener is in a different security zone.from developer.mozilla.org/en-US/docs/Web/API/Window/opener'*'to be usable with a desktop app built with Electron. Both popup and main window are inhttp://localhost:9000