Skip to content

Commit a15b86c

Browse files
committed
Merge branch 'master' of github.com:RobQuistNL/chrome-github-jira
2 parents 24fb48d + ec17347 commit a15b86c

File tree

2 files changed

+14
-7
lines changed

2 files changed

+14
-7
lines changed

manifest.json

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"manifest_version": 2,
2+
"manifest_version": 3,
33
"name": "GitHub Jira Integration",
44
"version": "1.3.0",
55

@@ -10,7 +10,7 @@
1010

1111
"options_ui": {
1212
"page": "src/options.html",
13-
"chrome_style": true
13+
"chrome_style": true
1414
},
1515

1616
"icons": {
@@ -22,7 +22,11 @@
2222
},
2323

2424
"web_accessible_resources": [
25-
"images/jira.png"
25+
{
26+
"resources": [
27+
"images/jira.png"
28+
]
29+
}
2630
],
2731

2832
"content_scripts": [
@@ -35,7 +39,10 @@
3539

3640
"permissions": [
3741
"activeTab",
38-
"storage",
42+
"storage"
43+
],
44+
45+
"host_permissions": [
3946
"https://*.atlassian.net/",
4047
"https://*.jira.com/",
4148
"http://*.atlassian.net/",
@@ -47,7 +54,7 @@
4754
],
4855

4956
"background": {
50-
"scripts": ["src/background.js"],
51-
"persistent": false
57+
"service_worker": "src/background.js",
58+
"type": "module"
5259
}
5360
}

src/content.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// The last time a refresh of the page was done
22
let lastRefresh = (new Date()).getTime();
3-
let jiraLogo = chrome.extension.getURL("images/jira.png");
3+
let jiraLogo = chrome.runtime.getURL("images/jira.png");
44
let jiraUrl = '';
55
let acceptanceStartString = 'h3. Acceptance Criteria';
66
let acceptanceEndString = 'h3. Notes';

0 commit comments

Comments
 (0)