electron/spec/fixtures/pages/window-open-size.html
2015-11-12 20:29:30 +08:00

8 lines
234 B
HTML

<html>
<body>
<script type="text/javascript" charset="utf-8">
var size = require('electron').remote.getCurrentWindow().getSize();
window.opener.postMessage('size: ' + size.width + ' ' + size.height, '*')
</script>
</body>
</html>