From ec7b3aaa496cb9468479ea1ae80f37280dcb3452 Mon Sep 17 00:00:00 2001 From: octospacc Date: Thu, 26 Sep 2024 23:28:54 +0200 Subject: [PATCH] fix --- static/MatrixStickerHelper/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/MatrixStickerHelper/index.html b/static/MatrixStickerHelper/index.html index 98bdcaf..e9c3b4e 100644 --- a/static/MatrixStickerHelper/index.html +++ b/static/MatrixStickerHelper/index.html @@ -600,7 +600,7 @@ TODO: async function CreateNewPack (event, modalButton, packUrl) { let packData = { stickers: [] }; // if the user specified an URL, try downloading data from there - packUrl ||= modalButton.parentElement.querySelector('input[name="packUrl"]').value; + packUrl ||= modalButton.parentElement.parentElement.querySelector('input[name="packUrl"]').value; // TODO: warn if an existing pack is imported from that URL and let the user choose if to continue or cancel //if (packUrl && IsAnyPackImportedFrom(packUrl) && await Spacc.ShowModal({ label: Defaults.Strings.mAlreadyImported, action: () => 'continue', actionCancel: () => 'cancel' }) === 'continue') { // return;