diff --git a/manifest.json b/manifest.json index 5c950db..3b87983 100644 --- a/manifest.json +++ b/manifest.json @@ -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": [] + } } } } diff --git a/src/content-script.js b/src/content-script.js index 95f8f61..bad4870 100644 --- a/src/content-script.js +++ b/src/content-script.js @@ -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,