Skip to content
This repository was archived by the owner on Feb 9, 2020. It is now read-only.

Commit cc8c560

Browse files
committed
fix(devtoolsBackground): fix script reference
Closes #241 Closes #242 Closes #243
1 parent 86bda99 commit cc8c560

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

devtoolsBackground.js

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,5 @@
11
var panels = chrome && chrome.devtools && chrome.devtools.panels;
22

3-
function getScope(node) {
4-
var scope = window.angular.element(node).scope();
5-
if (!scope) {
6-
// Might be a child of a DocumentFragment...
7-
while (node && node.nodeType === 1) node = node.parentNode;
8-
if (node && node.nodeType === 11) node = (node.parentNode || node.host);
9-
return getScope(node);
10-
}
11-
return scope;
12-
}
13-
143
// The function below is executed in the context of the inspected page.
154

165
var getPanelContents = function () {
@@ -39,6 +28,17 @@ var getPanelContents = function () {
3928
} else {
4029
return {};
4130
}
31+
32+
function getScope(node) {
33+
var scope = window.angular.element(node).scope();
34+
if (!scope) {
35+
// Might be a child of a DocumentFragment...
36+
while (node && node.nodeType === 1) node = node.parentNode;
37+
if (node && node.nodeType === 11) node = (node.parentNode || node.host);
38+
return getScope(node);
39+
}
40+
return scope;
41+
}
4242
};
4343

4444
panels && panels.elements.createSidebarPane(
@@ -52,7 +52,7 @@ panels && panels.elements.createSidebarPane(
5252
var angularPanel = panels.create(
5353
"AngularJS",
5454
"img/angular.png",
55-
"panel.html"
55+
"panel/app.html"
5656
);
5757
});
5858

0 commit comments

Comments
 (0)