diff options
author | Wojtek Kosior <koszko@koszko.org> | 2021-09-08 19:55:33 +0200 |
---|---|---|
committer | Wojtek Kosior <koszko@koszko.org> | 2021-09-08 19:55:33 +0200 |
commit | e2d26bad35bbe3876862b482f7963d713238313b (patch) | |
tree | 47e6647c239e8f85fa764cfa5750e0f73e1efd74 /html | |
parent | 704f2da0673dc714f72b9bb82f6bf648795d4335 (diff) | |
download | browser-extension-e2d26bad35bbe3876862b482f7963d713238313b.tar.gz browser-extension-e2d26bad35bbe3876862b482f7963d713238313b.zip |
Fix sanitizing of non-HTML XMLDocument's
Diffstat (limited to 'html')
-rw-r--r-- | html/display-panel.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/html/display-panel.js b/html/display-panel.js index 7d801c9..623ff36 100644 --- a/html/display-panel.js +++ b/html/display-panel.js @@ -276,8 +276,8 @@ function handle_activity_report(message) template.script_contents.textContent = data; container_for_injected.appendChild(template.div); } - if (type === "content_type") { - if (!/html/.test(data)) + if (type === "is_html") { + if (!data) content_type_cell.classList.remove("hide"); } if (type === "repo_query_action") { |