1
0
Fork 0
mirror of https://github.com/LaQuay/TDTChannels.git synced 2025-06-01 10:19:23 +02:00

Add legal and improve JS

This commit is contained in:
Marc 2018-12-13 19:21:15 +01:00
parent 9c55d849e6
commit f0672ec631
2 changed files with 15 additions and 5 deletions
script/public

View file

@ -1,4 +1,4 @@
function getResolution(from) {
function getResolution(from, fn_callback) {
$.get(from, function(data) {
$response = data.split("\n");
@ -12,8 +12,7 @@ function getResolution(from) {
}
});
// TODO: This should be a Callback
updateResolution($resolutions);
fn_callback($resolutions);
});
}