mirror of
https://github.com/schlagmichdoch/PairDrop.git
synced 2025-04-24 16:56:16 -04:00
Implement the ability to initiate public room creation or device pairing via URL parameter (#207)
This commit is contained in:
parent
5f77c785f9
commit
78b758b990
1 changed files with 9 additions and 0 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue