[mirotlaksfu] - add survey in config.js
هذا الالتزام موجود في:
@@ -23,10 +23,9 @@ const RoomURL = window.location.href;
|
||||
|
||||
const socket = io({ transports: ['websocket'] });
|
||||
|
||||
const surveyActive = true;
|
||||
|
||||
const url = {
|
||||
survey: 'https://www.questionpro.com/t/AUs7VZq02P',
|
||||
let survey = {
|
||||
enabled: true,
|
||||
url: 'https://www.questionpro.com/t/AUs7VZq02P',
|
||||
};
|
||||
|
||||
const _PEER = {
|
||||
@@ -1524,7 +1523,7 @@ function handleRoomClientEvents() {
|
||||
console.log('Room Client save recording before to exit');
|
||||
rc.stopRecording();
|
||||
}
|
||||
if (surveyActive) {
|
||||
if (survey.enabled) {
|
||||
leaveFeedback();
|
||||
} else {
|
||||
openURL('/newroom');
|
||||
@@ -1555,7 +1554,7 @@ function leaveFeedback() {
|
||||
},
|
||||
}).then((result) => {
|
||||
if (result.isConfirmed) {
|
||||
openURL(url.survey);
|
||||
openURL(survey.url);
|
||||
} else {
|
||||
openURL('/newroom');
|
||||
}
|
||||
|
||||
@@ -311,6 +311,8 @@ class RoomClient {
|
||||
}
|
||||
|
||||
async handleRoomInfo(room) {
|
||||
console.log('07.0 ----> Room Survey', room.survey);
|
||||
survey = room.survey;
|
||||
let peers = new Map(JSON.parse(room.peers));
|
||||
participantsCount = peers.size;
|
||||
for (let peer of Array.from(peers.keys()).filter((id) => id == this.peer_id)) {
|
||||
|
||||
@@ -334,7 +334,7 @@ function execVoiceCommands(transcript) {
|
||||
break;
|
||||
case commands.survey:
|
||||
printCommand(commands.survey);
|
||||
openURL(url.survey, true);
|
||||
survey.enabled && openURL(survey.url, true);
|
||||
sound('open');
|
||||
break;
|
||||
case commands.stopRecognition:
|
||||
|
||||
المرجع في مشكلة جديدة
حظر مستخدم