Skip to content

Commit

Permalink
[call-me] - improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
miroslavpejic85 committed Jan 4, 2025
1 parent 123e79e commit 850cff8
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "call-me",
"version": "1.0.41",
"version": "1.0.42",
"description": "Your Go-To for Instant Video Calls",
"author": "Miroslav Pejic - miroslav.pejic.85@gmail.com",
"license": "AGPLv3",
Expand Down
11 changes: 8 additions & 3 deletions public/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,14 @@ document.addEventListener('DOMContentLoaded', function () {
});

// Handle config
if (!app.showGithub) {
githubDiv.style.display = 'none';
}
const elementsToHide = [
{ condition: !app.showGithub, element: githubDiv },
{ condition: !app.attribution, element: attribution }
];

elementsToHide.forEach(({ condition, element }) => {
if (condition) elemDisplay(element, false);
});

async function checkHostPassword(maxRetries = 3, attempts = 0) {
try {
Expand Down
1 change: 1 addition & 0 deletions public/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@

const app = {
showGithub: true,
attribution: true,
//...
};

0 comments on commit 850cff8

Please sign in to comment.