fix: image is not defined

This commit is contained in:
thecodrr
2021-11-19 12:01:37 +05:00
parent bf64300c68
commit 0250a86b12

View File

@@ -14,6 +14,8 @@ function register(editor) {
for (let element of elements) {
switch (element.nodeName) {
case "IMG": {
const image = element;
if (image.hasAttribute("data-hash")) {
image.removeAttribute("src");
continue;