electron/spec/fixtures/devtools-extensions/foo/index.html
2016-06-06 14:41:55 -07:00

17 lines
422 B
HTML

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
<script>
var message = JSON.stringify({
runtimeId: chrome.runtime.id
})
var sendMessage = `require('electron').ipcRenderer.send('answer', ${message})`
window.chrome.devtools.inspectedWindow.eval(sendMessage, function () {})
</script>
</head>
<body>
a custom devtools extension
</body>
</html>