313b2faa3c
instance ID and allowing moving a guest instance to a new webview.
17 lines
426 B
HTML
17 lines
426 B
HTML
<html>
|
|
<body>
|
|
<script type="text/javascript" charset="utf-8">
|
|
var ipcRenderer = require('electron').ipcRenderer
|
|
|
|
ipcRenderer.on('guestinstance', function(event, instance) {
|
|
var webview = new WebView()
|
|
webview.setAttribute('guestinstance', instance)
|
|
document.body.appendChild(webview)
|
|
|
|
webview.addEventListener('did-attach', function (){
|
|
ipcRenderer.send('pong')
|
|
})
|
|
})
|
|
</script>
|
|
</body>
|
|
</html>
|