electron/spec/fixtures/pages/window-opener.html

12 lines
251 B
HTML
Raw Normal View History

2015-08-04 07:46:59 +00:00
<html>
<body>
<script type="text/javascript" charset="utf-8">
if (window.opener !== null)
window.opener.postMessage(typeof window.opener, '*');
else
require('electron').ipcRenderer.send('opener', window.opener);
2015-08-04 07:46:59 +00:00
</script>
</body>
</html>