From dbeb68c3baab3cad4eedac227a7e252f48370f0d Mon Sep 17 00:00:00 2001 From: octospacc Date: Thu, 26 Sep 2024 23:18:45 +0200 Subject: [PATCH] Fix MatrixStickerHelper login --- source/FramesBrowser/index.html | 14 -------------- static/MatrixStickerHelper/index.html | 2 +- 2 files changed, 1 insertion(+), 15 deletions(-) diff --git a/source/FramesBrowser/index.html b/source/FramesBrowser/index.html index c7c219d..a767481 100644 --- a/source/FramesBrowser/index.html +++ b/source/FramesBrowser/index.html @@ -272,20 +272,6 @@ var FrameHtmlInjectable = (` } window.parent.postMessage({ FramesBrowser: "Screenshot:1" }, '*'); html2canvas(document.body, { allowTaint: true }).then(function(canvas){ - /*try { - Object.assign(document.createElement('a'), { - download: `FramesBrowser-Screenshot-${(new Date).toJSON()}`, - href: canvas.toDataURL('image/png'), - }).click(); - } catch(err) { - console.error(err); - SpaccDotWeb.ShowModal({ - text: "Use the browser's context menu to download the image.", - extraHTML: `
`, - }).then(function(modalEl){ - modalEl.querySelector('div').appendChild(canvas); - }); - }*/ var imageData; try { imageData = canvas.toDataURL('image/png'); diff --git a/static/MatrixStickerHelper/index.html b/static/MatrixStickerHelper/index.html index 1321969..98bdcaf 100644 --- a/static/MatrixStickerHelper/index.html +++ b/static/MatrixStickerHelper/index.html @@ -966,7 +966,7 @@ TODO: } async function TryUserLogin (event, modalButton) { - const modal = modalButton.parentElement; + const modal = modalButton.parentElement.parentElement; const homeserver = modal.querySelector('input[name="homeserver"]').value; const username = modal.querySelector('input[name="username"]').value; const password = modal.querySelector('input[name="password"]').value;