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({
|
2016-06-07 17:38:01 +00:00
|
|
|
runtimeId: chrome.runtime.id,
|
2016-06-08 21:57:20 +00:00
|
|
|
tabId: chrome.devtools.inspectedWindow.tabId,
|
|
|
|
i18nString: chrome.i18n.getMessage('foo', ['bar', 'baz'])
|
2016-06-06 21:36:01 +00:00
|
|
|
})
|
|
|
|
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>
|