From 6aa564356e716f4ac8cf4927cb42c23becfbe6b0 Mon Sep 17 00:00:00 2001 From: Chris Date: Fri, 28 Mar 2025 08:15:40 +1100 Subject: [PATCH] #53 --- js/popup.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/popup.js b/js/popup.js index 2e1a139..8e48f9a 100644 --- a/js/popup.js +++ b/js/popup.js @@ -222,7 +222,7 @@ class Popup extends HTMLSpanElement { wait_while_mask_editing() { const cancel_button = document.getElementById("maskEditor_topBarCancelButton") - if (!cancel_button.filter_listener_added) { + if (cancel_button && !cancel_button.filter_listener_added) { cancel_button.addEventListener('click', (e)=>{ this.send_cancel() }) cancel_button.filter_listener_added = true }