diff options
Diffstat (limited to 'ext/js/pages/settings/modal.js')
-rw-r--r-- | ext/js/pages/settings/modal.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/js/pages/settings/modal.js b/ext/js/pages/settings/modal.js index 21a6e705..17a4605d 100644 --- a/ext/js/pages/settings/modal.js +++ b/ext/js/pages/settings/modal.js @@ -37,7 +37,8 @@ export class Modal extends PanelElement { prepare() { const node = this.node; this._contentNode = node.querySelector('.modal-content'); - let dimmerNode = /** @type {?HTMLElement} */ (node.querySelector('.modal-content-dimmer')); + /** @type {?HTMLElement} */ + let dimmerNode = node.querySelector('.modal-content-dimmer'); if (dimmerNode === null) { dimmerNode = node; } dimmerNode.addEventListener('mousedown', this._onModalContainerMouseDown.bind(this), false); dimmerNode.addEventListener('mouseup', this._onModalContainerMouseUp.bind(this), false); |