Skip to content

Commit

Permalink
Merge pull request #32 from sunya9/fix-csp-error
Browse files Browse the repository at this point in the history
fix: CSP error in Chrome 130+
  • Loading branch information
r7kamura authored Dec 14, 2024
2 parents b25c600 + a1dd7cd commit 85a50b2
Show file tree
Hide file tree
Showing 4 changed files with 1,242 additions and 2,103 deletions.
32 changes: 17 additions & 15 deletions manifest.json → manifest.ts
Original file line number Diff line number Diff line change
@@ -1,16 +1,18 @@
{
"manifest_version": 3,
"name": "Amazon URL Shortener",
"description": "Automatically shorten Amazon product URL.",
"version": "1.4.0",
"icons": {
import { defineManifest } from "@crxjs/vite-plugin";

export const manifest = defineManifest({
manifest_version: 3,
name: "Amazon URL Shortener",
description: "Automatically shorten Amazon product URL.",
version: "1.4.0",
icons: {
"16": "images/icon16.png",
"48": "images/icon48.png",
"128": "images/icon128.png"
"128": "images/icon128.png",
},
"content_scripts": [
content_scripts: [
{
"matches": [
matches: [
"https://smile.amazon.co.uk/*",
"https://smile.amazon.de/*",
"https://smile.amazon.com/*",
Expand All @@ -32,10 +34,10 @@
"https://www.amazon.nl/*",
"https://www.amazon.sa/*",
"https://www.amazon.se/*",
"https://www.amazon.sg/*"
"https://www.amazon.sg/*",
],
"run_at": "document_end",
"js": ["src/main.ts"]
}
]
}
run_at: "document_end",
js: ["src/main.ts"],
},
],
});
Loading

0 comments on commit 85a50b2

Please sign in to comment.