-
Notifications
You must be signed in to change notification settings - Fork 2
/
devtools.js
executable file
·37 lines (32 loc) · 1.12 KB
/
devtools.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
chrome.devtools.panels.elements.createSidebarPane('Flight', function(sidebar) {
sidebar.setPage('panel.html');
});
chrome.devtools.panels.elements.createSidebarPane('Flight: Components', function(sidebar) {
chrome.devtools.panels.elements.onSelectionChanged.addListener(function () {
inject(init)
.then(function () {
setExpression(sidebar, getSelectedComponent);
})
.catch(fail)
});
inject(init)
.then(function () {
setExpression(sidebar, getSelectedComponent);
})
.catch(fail)
});
chrome.devtools.panels.elements.createSidebarPane('Flight: Detached Components', function(sidebar) {
chrome.devtools.panels.elements.onSelectionChanged.addListener(function () {
inject(init)
.then(function () {
setExpression(sidebar, getDetachedComponents);
})
.catch(fail)
});
inject(init)
.then(function () {
setExpression(sidebar, getDetachedComponents);
})
.catch(fail)
});
// chrome.devtools.panels.create('Flight', '', 'panel.html');