diff --git a/CONTRIBUTORS b/CONTRIBUTORS index 9d80a8b09..b9fae89d4 100644 --- a/CONTRIBUTORS +++ b/CONTRIBUTORS @@ -149,7 +149,7 @@ Gustaf Carefall virinci snowtimeglass Ben Olson -Akash Reddy +Akash Reddy Lucio Sauer Gustavo Sales Shawn M Moore diff --git a/qt/aqt/about.py b/qt/aqt/about.py index 3c35c2377..5cae4e4cb 100644 --- a/qt/aqt/about.py +++ b/qt/aqt/about.py @@ -187,6 +187,7 @@ def show(mw: aqt.AnkiQt) -> QDialog: "Mateusz Wojewoda", "Jarrett Ye", "Gustavo Sales", + "Akash Reddy", ) ) diff --git a/ts/editable/frame-element.ts b/ts/editable/frame-element.ts index 8f1130862..6f4644cb5 100644 --- a/ts/editable/frame-element.ts +++ b/ts/editable/frame-element.ts @@ -17,6 +17,11 @@ function restoreFrameHandles(mutations: MutationRecord[]): void { const frameElement = mutation.target as FrameElement; const framed = frameElement.querySelector(frameElement.frames!) as HTMLElement; + if (!framed) { + frameElement.remove(); + continue; + } + for (const node of mutation.addedNodes) { if (node === framed || isFrameHandle(node)) { continue;