electron-devtools-vendor
Version:
<div align="center"> <h2>electron-devtools-vendor</h2> <img alt="MIT" src="https://img.shields.io/github/license/BlackHole1/electron-devtools-vendor?color=9cf&style=flat-square"> <img alt="GitHub repo size" src="https://img.shields.io/github/r
12 lines (10 loc) • 334 B
JavaScript
define([], function() {
// Establish a bidiretional communication port with the background
var tabId = chrome.devtools.inspectedWindow.tabId;
var panelPort = chrome.runtime.connect({name: "devtoolspanel"});
panelPort.postMessage({
name: "identification",
data: tabId
});
return panelPort;
});