diff --git a/static/js/custom.js b/static/js/custom.js index 47e623d..6354d53 100644 --- a/static/js/custom.js +++ b/static/js/custom.js @@ -1,5 +1,7 @@ // Global socketio variable for socketio operations var socket = ""; +// yt-dlp-web-api url +var apiurl = "localhost:8888"; // Notification count var notifications = 0; // Web page title, used to help with notifications @@ -60,7 +62,7 @@ document.addEventListener("DOMContentLoaded", function () { setTheme(); } // Connect to the socketio server - socket = io("localhost:8888"); + socket = io(apiurl); // Emit signal to query the limits of the server socket.emit("limits", {}); // Preset the step variable to 1, this makes sure step based functionality won't break