Clear annotation on streamer change, prevent porting annotation between different streamers

This commit is contained in:
Alessandro Maggio
2021-03-13 13:17:33 +01:00
parent 43a545fe2d
commit 03c07220d1

View File

@@ -178,8 +178,9 @@
name: streamer.replace(".json", ""),
data: response["series"]
}], true)
clearAnnotations();
annotations = response["annotations"];
updateAnnotations()
updateAnnotations();
setTimeout(function(){getStreamerData(streamer);}, 300000); // 5 minutes
});
}