mirror of
https://github.com/schlagmichdoch/PairDrop.git
synced 2025-04-20 07:05:05 -04:00
Refactor URL arguments, localStorage and sessionStorage entries, and IndexedDB/PersistentStorage entries to snake_case.
This commit is contained in:
parent
da8178d72e
commit
a8242cecf7
6 changed files with 34 additions and 26 deletions
|
@ -124,8 +124,8 @@ export default class Peer {
|
|||
|
||||
_setPeerId(request) {
|
||||
const searchParams = new URL(request.url, "http://server").searchParams;
|
||||
let peerId = searchParams.get("peer_id");
|
||||
let peerIdHash = searchParams.get("peer_id_hash");
|
||||
let peerId = searchParams.get('peer_id');
|
||||
let peerIdHash = searchParams.get('peer_id_hash');
|
||||
if (peerId && Peer.isValidUuid(peerId) && this.isPeerIdHashValid(peerId, peerIdHash)) {
|
||||
this.id = peerId;
|
||||
} else {
|
||||
|
@ -135,7 +135,7 @@ export default class Peer {
|
|||
|
||||
_setRtcSupported(request) {
|
||||
const searchParams = new URL(request.url, "http://server").searchParams;
|
||||
this.rtcSupported = searchParams.get("webrtc_supported") === "true";
|
||||
this.rtcSupported = searchParams.get('webrtc_supported') === "true";
|
||||
}
|
||||
|
||||
_setName(req) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue