From 062d69d5f872aab12ccb2e553d171cb3728617b6 Mon Sep 17 00:00:00 2001 From: Administrator Date: Wed, 4 Oct 2023 13:53:50 +0000 Subject: [PATCH] Update custom.js --- static/js/custom.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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