Skip to content

Commit

Permalink
[mirotalkwebrtc] - update config.template
Browse files Browse the repository at this point in the history
  • Loading branch information
miroslavpejic85 committed May 11, 2024
1 parent 63160d3 commit e33eecf
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 4 deletions.
6 changes: 6 additions & 0 deletions backend/config.template.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,12 @@ module.exports = {
},
},
},
HTML: {
support: true,
profile: true,
projects: true,
//...
},
BUTTONS: {
setRandomRoom: true,
copyRoom: true,
Expand Down
10 changes: 7 additions & 3 deletions frontend/js/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
* @license For private project or commercial purposes contact us at: [email protected] or purchase it directly via Code Canyon:
* @license https://codecanyon.net/item/a-selfhosted-mirotalks-webrtc-rooms-scheduler-server/42643313
* @author Miroslav Pejic - [email protected]
* @version 1.0.76
* @version 1.0.77
*/


Expand Down Expand Up @@ -149,7 +149,7 @@ const toolTips = [
{ element: refreshBtn, text: 'Refresh rooms', position: 'top' },
];

const html = {
let html = {
support: true,
profile: true,
projects: true,
Expand Down Expand Up @@ -180,6 +180,7 @@ $(document).ready(async function () {

function loadConfig(cfg) {
config = cfg;
html = cfg.HTML ? cfg.HTML : html;
console.log('Config', config);
myProfile.setAttribute('href', config.Author.Profile);
repoP2P.setAttribute('href', config.MiroTalk.P2P.GitHub.Repo);
Expand Down Expand Up @@ -298,7 +299,10 @@ function hideElements() {
elemDisplay(showBoxesDS, false);
elemDisplay(boxesDS, false);
}
!html.profile && elemDisplay(myProfile, false);
if (!html.profile) {
elemDisplay(myProfile, false);
search.style.margin = '0px 5px 0px 10px'; // top right bottom left
}
!html.support && elemDisplay(navSup, false);
//...
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mirotalkwebrtc",
"version": "1.0.76",
"version": "1.0.77",
"description": "MiroTalk WebRTC admin",
"main": "server.js",
"scripts": {
Expand Down

0 comments on commit e33eecf

Please sign in to comment.