diff --git a/web/src/inspector.js b/web/src/inspector.js
index e0327074b..fe7768ecc 100644
--- a/web/src/inspector.js
+++ b/web/src/inspector.js
@@ -483,10 +483,7 @@ export class Inspector extends EventTarget {
string = string || none;
if (string.startsWith('https://') || string.startsWith('http://')) {
string = encodeURI(string);
- Utils.setInnerHTML(
- e.info.comment,
- `${string}`,
- );
+ e.info.comment.innerHTML = `${string}`;
} else {
setTextContent(e.info.comment, string);
}
@@ -554,10 +551,7 @@ export class Inspector extends EventTarget {
setTextContent(e.info.magnetLink, mixed);
} else {
const link = torrents[0].getMagnetLink();
- Utils.setInnerHTML(
- e.info.magnetLink,
- ``,
- );
+ e.info.magnetLink.innerHTML = ``;
}
}
diff --git a/web/src/utils.js b/web/src/utils.js
index 5256ac4ed..d85d6915e 100644
--- a/web/src/utils.js
+++ b/web/src/utils.js
@@ -22,23 +22,6 @@ export const Utils = {
return result;
},
-
- /**
- * Checks to see if the content actually changed before poking the DOM.
- */
- setInnerHTML(e, html) {
- if (!e) {
- return;
- }
-
- /* innerHTML is listed as a string, but the browser seems to change it.
- * For example, "∞" gets changed to "∞" somewhere down the line.
- * So, let's use an arbitrary different field to test our state... */
- if (e.currentHTML !== html) {
- e.currentHTML = html;
- e.innerHTML = html;
- }
- },
};
function toggleClass(buttons, button, pages, page, callback) {