From 58c17c31b9429d5f9d7d6097b2f56a472f72085c Mon Sep 17 00:00:00 2001 From: Darius Jahandarie Date: Tue, 24 Dec 2024 12:31:54 +0900 Subject: [PATCH] fix issues discovered by Kuuuube --- ext/js/display/display.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/ext/js/display/display.js b/ext/js/display/display.js index 0b4bf6b0f..2b6ea9ba2 100644 --- a/ext/js/display/display.js +++ b/ext/js/display/display.js @@ -799,6 +799,7 @@ export class Display extends EventDispatcher { this._closePopups(); this._closeAllPopupMenus(); this._eventListeners.removeAllEventListeners(); + this._contentManager.unloadAll(); this._hideTagNotification(false); this._hideInflectionNotification(false); this._triggerContentClear(); @@ -1436,9 +1437,6 @@ export class Display extends EventDispatcher { this._dictionaryEntryNodes.push(entry); this._addEntryEventListeners(entry); this._triggerContentUpdateEntry(dictionaryEntry, entry, i); - safePerformance.mark('display:waitMedia:start'); - safePerformance.mark('display:waitMedia:end'); - safePerformance.measure('display:waitMedia', 'display:waitMedia:start', 'display:waitMedia:end'); if (this._setContentToken !== token) { return; } container.appendChild(entry);