Skip to content

Commit

Permalink
fix: color detail and extension manifests
Browse files Browse the repository at this point in the history
  • Loading branch information
mauroerta committed Oct 28, 2021
1 parent 5a50010 commit d1d38f0
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
10 changes: 6 additions & 4 deletions devtool/public/manifest.firefox.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
{
"name": "morfeo",
"version": "1.0.0",
"description": "Morfeo web extension",
"name": "__MSG_name__",
"version": "0.3.0",
"description": "__MSG_description__",
"short_name": "morfeo",
"author": "Mauro Erta",
"homepage_url": "https://morfeo.dev",
"default_locale": "en",
"manifest_version": 2,
"icons": {
"16": "img/icon-16.png",
Expand Down Expand Up @@ -36,5 +38,5 @@
"all_frames": false
}
],
"permissions": ["storage", "tabs", "<all_urls>"]
"permissions": ["clipboardWrite", "tabs", "<all_urls>"]
}
6 changes: 3 additions & 3 deletions devtool/public/manifest.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"manifest_version": 3,
"name": "__MSG_name__",
"version": "1.0.0",
"version": "0.3.0",
"description": "__MSG_description__",
"author": "Mauro Erta",
"devtools_page": "devtool.html",
"options_page": "options.html",
"homepage_url": "https://github.com/VLK-STUDIO/morfeo",
"homepage_url": "https://morfeo.dev",
"default_locale": "en",
"icons": {
"16": "img/icon-16.png",
Expand All @@ -25,7 +25,7 @@
"externally_connectable": {
"ids": ["*"]
},
"permissions": ["storage", "activeTab", "clipboardWrite", "clipboardRead"],
"permissions": ["activeTab", "clipboardWrite"],
"background": {
"service_worker": "background.bundle.js"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export const Detail: React.FC = () => {
const { state } = route;

const cardStyle = useStyle({ bg: state?.detailKey as Color });
const bgColor = cardStyle['background']?.toString() || '#fff';
const bgColor = cardStyle['backgroundColor']?.toString() || '#fff';

return (
<div className={styles.container}>
Expand Down

0 comments on commit d1d38f0

Please sign in to comment.