Skip to content

Commit

Permalink
Support manifest v3
Browse files Browse the repository at this point in the history
  • Loading branch information
mirkoperillo committed Mar 5, 2024
1 parent 4e2956d commit 5d3bff2
Show file tree
Hide file tree
Showing 14 changed files with 6,848 additions and 4,331 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
node_modules/
dist/
src/js/vendor/vue-stuff/
build/
27 changes: 27 additions & 0 deletions addon/chrome/background.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
/*
Copyright (C) 2017-present Mirko Perillo and contributors
This file is part of Resting.
Resting is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Resting is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with Resting. If not, see <http://www.gnu.org/licenses/>.
*/

// Open a new tab, and load Resting
const openResting = (tabs) => {
chrome.tabs.create({
url: '/index.html',
})
}

chrome.action.onClicked.addListener(openResting)
20 changes: 20 additions & 0 deletions addon/chrome/manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"description": "Debug, inspect and test http requests in a easy way",
"manifest_version": 3,
"name": "Resting",
"version": "1.8.0",
"author": "Mirko Perillo",
"homepage_url": "https://github.com/mirkoperillo/resting",
"icons": {
"32": "icons/letter-r_32.png",
"64": "icons/letter-r_64.png"
},
"background": {
"service_worker": "background.js"
},
"action": {
"default_icon": "icons/letter-r_32.png"
},
"permissions": ["webRequest", "downloads"],
"host_permissions": ["<all_urls>"]
}
File renamed without changes.
2 changes: 1 addition & 1 deletion src/manifest.json → addon/firefox/manifest.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"description": "rest client focused on organization of the saved requests",
"description": "Debug, inspect and test http requests in a easy way",
"manifest_version": 2,
"name": "Resting",
"version": "1.8.0",
Expand Down
Loading

0 comments on commit 5d3bff2

Please sign in to comment.