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