Skip to content

Commit b183cb9

Browse files
author
Fabio Picheli
authored
Merge pull request #9 from tquetano-r7/master
Updates to permissions and styles
2 parents b837d8a + 694a2fb commit b183cb9

File tree

2 files changed

+18
-14
lines changed

2 files changed

+18
-14
lines changed

app/style.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ function injectCss(offsetTop, offsetLeft) {
1818
.gct-file-tree {
1919
position: absolute;
2020
top: ${$('#files').offset().top - offsetTop}px;
21-
background-color: #fff;
21+
background-color: transparent;
2222
left: ${offsetLeft}px;
2323
z-index: 28;
2424
width: 280px;
@@ -83,4 +83,4 @@ function injectCss(offsetTop, offsetLeft) {
8383
}
8484
</style>`)
8585
.appendTo("head");
86-
}
86+
}

manifest.json

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,25 +2,29 @@
22
"name": "Github Code Tree",
33
"version": "0.1.0",
44
"description": "Show the source tree on the github PR",
5+
"manifest_version": 2,
6+
"permissions": [
7+
"activeTab",
8+
"https://github.com/*"
9+
],
10+
"browser_action": {
11+
"default_icon": "icon.png"
12+
},
13+
"optional_permissions": [
14+
"http://*/*",
15+
"https://*/*"
16+
],
517
"content_scripts": [
618
{
7-
"matches": ["http://*/*", "https://*/*"],
19+
"matches": [
20+
"https://github.com/*"
21+
],
822
"js": [
923
"lib/jquery-1.11.1.min.js",
1024
"app/icons.js",
1125
"app/style.js",
1226
"app/app.js"
1327
]
1428
}
15-
],
16-
17-
"permissions": [
18-
"tabs",
19-
"http://*/*",
20-
"https://*/*"
21-
],
22-
"manifest_version": 2,
23-
"browser_action": {
24-
"default_icon": "icon.png"
25-
}
29+
]
2630
}

0 commit comments

Comments
 (0)