mirror of
https://github.com/Andre-Bzk/AnyClip.git
synced 2026-11-15 09:33:08 +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"
|
"run_at": "document_idle"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"applications": {
|
"browser_specific_settings": {
|
||||||
"gecko": {
|
"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 };
|
return { text: "", element: null };
|
||||||
}
|
}
|
||||||
|
|
||||||
const container = document.createElement("div");
|
const container = new DOMParser().parseFromString(lastSelectionHtml, "text/html").body;
|
||||||
container.innerHTML = lastSelectionHtml;
|
|
||||||
|
|
||||||
return {
|
return {
|
||||||
text: lastSelectionText,
|
text: lastSelectionText,
|
||||||
|
|||||||
Reference in New Issue
Block a user