mirror of
https://gitlab.com/octospacc/octospacc.gitlab.io
synced 2025-02-21 14:20:43 +01:00
Fix MatrixStickerHelper login
This commit is contained in:
parent
66c8e788cb
commit
dbeb68c3ba
@ -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: `<div style="overflow: auto;"></div>`,
|
||||
}).then(function(modalEl){
|
||||
modalEl.querySelector('div').appendChild(canvas);
|
||||
});
|
||||
}*/
|
||||
var imageData;
|
||||
try {
|
||||
imageData = canvas.toDataURL('image/png');
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user