Update custom.js

This commit is contained in:
Administrator 2023-10-04 13:53:50 +00:00
parent bda1f16ae5
commit 062d69d5f8
1 changed files with 3 additions and 1 deletions

View File

@ -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