mirror of https://github.com/electron/electron
16 lines
410 B
HTML
16 lines
410 B
HTML
<html>
|
|
<body>
|
|
<script type="text/javascript" charset="utf-8">
|
|
var windowUrl = decodeURIComponent(window.location.search.substring(3))
|
|
var opened = window.open('file://' + windowUrl, '', 'nodeIntegration=yes,show=no')
|
|
window.addEventListener('message', function (event) {
|
|
try {
|
|
opened.close()
|
|
} finally {
|
|
window.opener.postMessage(event.data, '*')
|
|
}
|
|
})
|
|
</script>
|
|
</body>
|
|
</html>
|