Skip to content

Commit b685fd7

Browse files
committed
update manifest to v3
1 parent 7219e72 commit b685fd7

File tree

2 files changed

+18
-9
lines changed

2 files changed

+18
-9
lines changed

manifest.json

Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,15 @@
11
{
2-
"manifest_version": 2,
2+
"manifest_version": 3,
33
"name": "GitHub Jira Integration",
4-
"version": "1.2.3",
4+
"version": "1.2.4",
55

66
"description": "This extension shows contents of linked tasks from Jira in Github",
77

88
"author": "Rob Quist / DukeSoft",
99
"homepage_url": "https://github.com/RobQuistNL/chrome-github-jira",
1010

1111
"options_ui": {
12-
"page": "src/options.html",
13-
"chrome_style": true
12+
"page": "src/options.html"
1413
},
1514

1615
"icons": {
@@ -22,7 +21,14 @@
2221
},
2322

2423
"web_accessible_resources": [
25-
"images/jira.png"
24+
{
25+
"resources": [
26+
"images/jira.png"
27+
],
28+
"matches": [
29+
"*://*/*"
30+
]
31+
}
2632
],
2733

2834
"content_scripts": [
@@ -35,15 +41,18 @@
3541

3642
"permissions": [
3743
"activeTab",
38-
"storage",
44+
"storage"
45+
],
46+
47+
"host_permissions": [
3948
"https://*.atlassian.net/",
4049
"https://*.jira.com/",
4150
"http://*.atlassian.net/",
4251
"http://*.jira.com/"
4352
],
4453

4554
"background": {
46-
"scripts": ["src/background.js"],
47-
"persistent": false
55+
"service_worker": "src/background.js",
56+
"type": "module"
4857
}
4958
}

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)