mirror of
https://gitlab.com/octospacc/octospacc.gitlab.io
synced 2025-06-05 21:59:15 +02:00
Fix MatrixStickerHelper login
This commit is contained in:
@@ -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');
|
||||||
|
@@ -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;
|
||||||
|
Reference in New Issue
Block a user