mirror of
https://github.com/schlagmichdoch/PairDrop.git
synced 2026-04-05 17:33:49 +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")) {
|
||||
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();
|
||||
|
||||
Reference in New Issue
Block a user