Implement the ability to initiate public room creation or device pairing via URL parameter (#207)

This commit is contained in:
schlagmichdoch 2023-12-05 19:29:02 +01:00
parent 5f77c785f9
commit 78b758b990

View file

@ -207,6 +207,15 @@ class PairDrop {
else if (urlParams.has("file_handler")) {
await this.webFileHandlersUI.evaluateLaunchQueue();
}
else if (urlParams.has("init")) {
const init = urlParams.get("init");
if (init === "pair") {
this.pairDeviceDialog._pairDeviceInitiate();
}
else if (init === "public_room") {
this.publicRoomDialog._createPublicRoom();
}
}
// remove url params from url
const urlWithoutParams = getUrlWithoutArguments();