Fix MatrixStickerHelper login

This commit is contained in:
2024-09-26 23:18:45 +02:00
parent 66c8e788cb
commit dbeb68c3ba
2 changed files with 1 additions and 15 deletions

View File

@@ -272,20 +272,6 @@ var FrameHtmlInjectable = (`
} }
window.parent.postMessage({ FramesBrowser: "Screenshot:1" }, '*'); window.parent.postMessage({ FramesBrowser: "Screenshot:1" }, '*');
html2canvas(document.body, { allowTaint: true }).then(function(canvas){ 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: `<div style="overflow: auto;"></div>`,
}).then(function(modalEl){
modalEl.querySelector('div').appendChild(canvas);
});
}*/
var imageData; var imageData;
try { try {
imageData = canvas.toDataURL('image/png'); imageData = canvas.toDataURL('image/png');

View File

@@ -966,7 +966,7 @@ TODO:
} }
async function TryUserLogin (event, modalButton) { async function TryUserLogin (event, modalButton) {
const modal = modalButton.parentElement; const modal = modalButton.parentElement.parentElement;
const homeserver = modal.querySelector('input[name="homeserver"]').value; const homeserver = modal.querySelector('input[name="homeserver"]').value;
const username = modal.querySelector('input[name="username"]').value; const username = modal.querySelector('input[name="username"]').value;
const password = modal.querySelector('input[name="password"]').value; const password = modal.querySelector('input[name="password"]').value;