refactor: remove unused import of Location in VideoRoomComponent
This commit is contained in:
parent
df0089c323
commit
acd0cb9b3d
@ -1,4 +1,3 @@
|
|||||||
// import { Location } from '@angular/common';
|
|
||||||
import { Component, OnDestroy, OnInit } from '@angular/core';
|
import { Component, OnDestroy, OnInit } from '@angular/core';
|
||||||
import { FormControl, FormGroup, FormsModule, ReactiveFormsModule, Validators } from '@angular/forms';
|
import { FormControl, FormGroup, FormsModule, ReactiveFormsModule, Validators } from '@angular/forms';
|
||||||
import { MatButtonModule } from '@angular/material/button';
|
import { MatButtonModule } from '@angular/material/button';
|
||||||
|
|||||||
@ -61,7 +61,7 @@ export class RoomService {
|
|||||||
* @returns publisherSecret - The secret parameter extracted from the publisher room URL
|
* @returns publisherSecret - The secret parameter extracted from the publisher room URL
|
||||||
*/
|
*/
|
||||||
async getSecrets(roomId: string): Promise<{ moderatorSecret: string; publisherSecret: string }> {
|
async getSecrets(roomId: string): Promise<{ moderatorSecret: string; publisherSecret: string }> {
|
||||||
const { moderatorRoomUrl, publisherRoomUrl } = await this.httpService.getRoom(roomId);
|
const { moderatorRoomUrl, publisherRoomUrl } = await this.getRoom(roomId);
|
||||||
|
|
||||||
const publisherUrl = new URL(publisherRoomUrl);
|
const publisherUrl = new URL(publisherRoomUrl);
|
||||||
const publisherSecret = publisherUrl.searchParams.get('secret') || '';
|
const publisherSecret = publisherUrl.searchParams.get('secret') || '';
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user