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:
@@ -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