From 860a2f6929a635c7677ef5db81691408c1a223b3 Mon Sep 17 00:00:00 2001 From: Wolfsblvt Date: Tue, 11 Jun 2024 02:25:01 +0200 Subject: [PATCH] Fix naming --- public/scripts/popup.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/public/scripts/popup.js b/public/scripts/popup.js index c9fc24500..d38d40d70 100644 --- a/public/scripts/popup.js +++ b/public/scripts/popup.js @@ -375,13 +375,13 @@ export class Popup { /** @type {{value: any, result: POPUP_RESULT|number?}?} Last popup result */ lastResult: null, - /** @returns {boolean} Checks if any modal dialog is open */ - isDialogOpen() { + /** @returns {boolean} Checks if any modal popup dialog is open */ + isPopupOpen() { return Popup.util.popups.length > 0; }, /** - * Returns the topmost modal layer in the document. If there is an open dialog, + * Returns the topmost modal layer in the document. If there is an open dialog popup, * it returns the dialog element. Otherwise, it returns the document body. * * @return {HTMLElement} The topmost modal layer element