mirror of
https://github.com/Andre-Bzk/AnyClip.git
synced 2026-11-15 15:43:07 +01:00
fix: Mozilla-Addon-Validierung korrigiert
- `data_collection_permissions` in `browser_specific_settings` ergänzt (`required: ["none"]`) - `applications` → `browser_specific_settings` migriert (aktueller Manifest-Schlüssel) - Unsichere `innerHTML`-Zuweisung in content-script.js durch `DOMParser` ersetzt
This commit is contained in:
+6
-2
@@ -43,9 +43,13 @@
|
||||
"run_at": "document_idle"
|
||||
}
|
||||
],
|
||||
"applications": {
|
||||
"browser_specific_settings": {
|
||||
"gecko": {
|
||||
"id": "anyclip@example.local"
|
||||
"id": "anyclip@example.local",
|
||||
"data_collection_permissions": {
|
||||
"required": ["none"],
|
||||
"optional": []
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -59,8 +59,7 @@ function getSelectionFragment() {
|
||||
return { text: "", element: null };
|
||||
}
|
||||
|
||||
const container = document.createElement("div");
|
||||
container.innerHTML = lastSelectionHtml;
|
||||
const container = new DOMParser().parseFromString(lastSelectionHtml, "text/html").body;
|
||||
|
||||
return {
|
||||
text: lastSelectionText,
|
||||
|
||||
Reference in New Issue
Block a user