From 124eb5f7666d71b560ccccce757a15bc3400eacf Mon Sep 17 00:00:00 2001 From: Jonathan Braat Date: Thu, 24 Oct 2024 20:28:40 +1300 Subject: [PATCH] [FIX] CSP error, and minor doc improvements --- README.md | 2 +- package.json | 2 +- src/pages/content/index.tsx | 2 +- src/pages/content/style.css | 2 +- yarn.lock | 8 ++++---- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index b7cbc22..2cd750c 100755 --- a/README.md +++ b/README.md @@ -78,7 +78,7 @@ This is the complete Firefox setup from a fresh project: 1. Open - Firefox browser 2. Access - [about:debugging#/runtime/this-firefox](about:debugging#/runtime/this-firefox) 4. Click - Load temporary Add-on - 5. Select - any file in `dist` folder in this project (after dev or build) + 5. Select - any file in `dist` folder (i.e. `manifest.json`) in this project (after dev or build) 8. If you want to build for production, run `yarn build` or `npm run build`. ### Customization diff --git a/package.json b/package.json index 7982f38..2cc1e79 100755 --- a/package.json +++ b/package.json @@ -18,7 +18,7 @@ "webextension-polyfill": "^0.12.0" }, "devDependencies": { - "@crxjs/vite-plugin": "2.0.0-beta.25", + "@crxjs/vite-plugin": "2.0.0-beta.26", "@types/chrome": "^0.0.278", "@types/node": "^20.12.11", "@types/react": "^18.3.1", diff --git a/src/pages/content/index.tsx b/src/pages/content/index.tsx index fb3df4c..e27a0c7 100644 --- a/src/pages/content/index.tsx +++ b/src/pages/content/index.tsx @@ -9,7 +9,7 @@ if (!rootContainer) throw new Error("Can't find Content root element"); const root = createRoot(rootContainer); root.render(
- content script loaded + content script loaded
); diff --git a/src/pages/content/style.css b/src/pages/content/style.css index 954c6f5..2072567 100644 --- a/src/pages/content/style.css +++ b/src/pages/content/style.css @@ -1,6 +1,6 @@ @tailwind base; @tailwind components; @tailwind utilities; -.langin{ +.your-class { color: aliceblue; } \ No newline at end of file diff --git a/yarn.lock b/yarn.lock index 91a1b49..7ce561d 100644 --- a/yarn.lock +++ b/yarn.lock @@ -221,10 +221,10 @@ "@babel/helper-validator-identifier" "^7.24.5" to-fast-properties "^2.0.0" -"@crxjs/vite-plugin@2.0.0-beta.25": - version "2.0.0-beta.25" - resolved "https://registry.yarnpkg.com/@crxjs/vite-plugin/-/vite-plugin-2.0.0-beta.25.tgz#6753749d70d6df22f0132303cbdc08bed8850d00" - integrity sha512-g5ytTNiFpFCi+T0trSDJLohVz5PufLBLh6OGljyGTHkQCKiApuEgZ1bAjgPXluMDhMUvbPfZT10LYl5ROefXog== +"@crxjs/vite-plugin@2.0.0-beta.26": + version "2.0.0-beta.26" + resolved "https://registry.yarnpkg.com/@crxjs/vite-plugin/-/vite-plugin-2.0.0-beta.26.tgz#72e5d17b63d250bec663e0556b94de4834deff85" + integrity sha512-fZiSeOB4LOwq3cLIwHJnJ4x/duBU/Gkn3JKF7b7mZIRAXtu1waorJ6QaH7qoZPcN5LzyA3J+/t3Kuwa/oo8XNg== dependencies: "@rollup/pluginutils" "^4.1.2" "@webcomponents/custom-elements" "^1.5.0" -- knotmirror 0.0.1