[mirotalksfu] - add whoAreYou and api_room_exists endpoint
هذا الالتزام موجود في:
@@ -44,7 +44,7 @@ function login() {
|
||||
|
||||
// http://localhost:3010/join/test
|
||||
const pathParts = window.location.pathname.split('/');
|
||||
const roomPath = pathParts[pathParts.length - 1];
|
||||
const roomPath = filterXSS(pathParts[pathParts.length - 1]);
|
||||
|
||||
if (username && password) {
|
||||
axios
|
||||
|
||||
@@ -11,7 +11,7 @@ if (location.href.substr(0, 5) !== 'https') location.href = 'https' + location.h
|
||||
* @license For commercial or closed source, contact us at license.mirotalk@gmail.com or purchase directly via CodeCanyon
|
||||
* @license CodeCanyon: https://codecanyon.net/item/mirotalk-sfu-webrtc-realtime-video-conferences/40769970
|
||||
* @author Miroslav Pejic - miroslav.pejic.85@gmail.com
|
||||
* @version 1.5.90
|
||||
* @version 1.5.91
|
||||
*
|
||||
*/
|
||||
|
||||
@@ -4500,7 +4500,7 @@ function showAbout() {
|
||||
imageUrl: image.about,
|
||||
customClass: { image: 'img-about' },
|
||||
position: 'center',
|
||||
title: 'WebRTC SFU v1.5.90',
|
||||
title: 'WebRTC SFU v1.5.91',
|
||||
html: `
|
||||
<br />
|
||||
<div id="about">
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
* @license For commercial or closed source, contact us at license.mirotalk@gmail.com or purchase directly via CodeCanyon
|
||||
* @license CodeCanyon: https://codecanyon.net/item/mirotalk-sfu-webrtc-realtime-video-conferences/40769970
|
||||
* @author Miroslav Pejic - miroslav.pejic.85@gmail.com
|
||||
* @version 1.5.90
|
||||
* @version 1.5.91
|
||||
*
|
||||
*/
|
||||
|
||||
|
||||
17
public/js/WhoAreYou.js
Normal file
17
public/js/WhoAreYou.js
Normal file
@@ -0,0 +1,17 @@
|
||||
'use strict';
|
||||
|
||||
console.log(window.location);
|
||||
|
||||
const presenterLoginBtn = document.getElementById('presenterLoginButton');
|
||||
const guestJoinRoomBtn = document.getElementById('guestJoinRoomButton');
|
||||
|
||||
const pathParts = window.location.pathname.split('/');
|
||||
const roomPath = filterXSS(pathParts[pathParts.length - 1]);
|
||||
|
||||
presenterLoginBtn.onclick = (e) => {
|
||||
window.location.href = '/login';
|
||||
};
|
||||
|
||||
guestJoinRoomBtn.onclick = (e) => {
|
||||
window.location.href = '/join/' + roomPath;
|
||||
};
|
||||
المرجع في مشكلة جديدة
حظر مستخدم