Skip to content

Commit

Permalink
[call-me] - add config
Browse files Browse the repository at this point in the history
  • Loading branch information
miroslavpejic85 committed Jan 3, 2025
1 parent 1a552a7 commit 114bf64
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 2 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.38",
"version": "1.0.39",
"description": "Your Go-To for Instant Video Calls",
"author": "Miroslav Pejic - miroslav.pejic.85@gmail.com",
"license": "AGPLv3",
Expand Down
5 changes: 4 additions & 1 deletion public/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,10 @@ document.addEventListener('DOMContentLoaded', function () {
fetchRandomImage();
});

// githubDiv.style.display = 'none';
// Handle config
if (!app.showGithub) {
githubDiv.style.display = 'none';
}

async function checkHostPassword(maxRetries = 3, attempts = 0) {
try {
Expand Down
6 changes: 6 additions & 0 deletions public/config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
'use strict';

const app = {
showGithub: true,
//...
};
1 change: 1 addition & 0 deletions public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@

<!-- JavaScript libraries for WebSocket and custom client code -->
<script src="/socket.io/socket.io.js"></script>
<script src="config.js"></script>
<script src="client.js"></script>

<!-- Include Axios file -->
Expand Down

0 comments on commit 114bf64

Please sign in to comment.