From 1ef4cd2a2ef2292fb41eee6e31a6282f54560f87 Mon Sep 17 00:00:00 2001 From: Simon Rozman Date: Tue, 6 Feb 2024 15:57:52 +0100 Subject: [PATCH] Cleanup --- online-editor.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/online-editor.js b/online-editor.js index 269eafd..494da2c 100644 --- a/online-editor.js +++ b/online-editor.js @@ -94,10 +94,9 @@ class BesEditor { } } - const clientRect = BesEditor.addMistake(range, match) matches.push({ range: range, - rects: clientRect, + rects: BesEditor.addMistake(range, match), match: match }) }) @@ -217,9 +216,8 @@ class BesEditor { // Tests if given element is block element. static isBlockElement(el) { - const defaultView = document.defaultView switch ( - defaultView + document.defaultView .getComputedStyle(el, null) .getPropertyValue('display') .toLowerCase()