mirror of
https://github.com/streetwriters/notesnook.git
synced 2026-02-24 04:00:59 +01:00
fix: image is not defined
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user