Update custom.js
This commit is contained in:
parent
bda1f16ae5
commit
062d69d5f8
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue