nodejs: getiing formats object

This commit is contained in:
sshakndr
2023-11-21 17:41:31 +07:00
committed by Sergey Linnik
parent 8ba1d5e8d7
commit 5849c9bb69
3 changed files with 24 additions and 0 deletions

View File

@ -19,6 +19,15 @@
var language;
var userid;
var directUrl;
var Formats;
window.onload = function () {
fetch('formats')
.then((response) => response.json())
.then((data) => {
Formats = data;
})
}
if (typeof jQuery != "undefined") {
jq = jQuery.noConflict();