mirror of
https://github.com/schlagmichdoch/PairDrop.git
synced 2026-05-22 12:14:42 +00:00
Implement the ability to initiate public room creation or device pairing via URL parameter (#207)
This commit is contained in:
@@ -207,6 +207,15 @@ class PairDrop {
|
|||||||
else if (urlParams.has("file_handler")) {
|
else if (urlParams.has("file_handler")) {
|
||||||
await this.webFileHandlersUI.evaluateLaunchQueue();
|
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
|
// remove url params from url
|
||||||
const urlWithoutParams = getUrlWithoutArguments();
|
const urlWithoutParams = getUrlWithoutArguments();
|
||||||
|
|||||||
Reference in New Issue
Block a user