Added devtools detection.
This commit is contained in:
9
assets/js/devtools.js
Normal file
9
assets/js/devtools.js
Normal file
@@ -0,0 +1,9 @@
|
||||
// Create a connection to the background page
|
||||
var backgroundPageConnection = chrome.runtime.connect({
|
||||
name: "devtools-page"
|
||||
});
|
||||
|
||||
backgroundPageConnection.postMessage({
|
||||
name: 'init',
|
||||
tabId: chrome.devtools.inspectedWindow.tabId
|
||||
});
|
||||
Reference in New Issue
Block a user