fixes #2291
This commit is contained in:
@@ -58,7 +58,7 @@
|
|||||||
$(function() {
|
$(function() {
|
||||||
Danbooru.Ugoira.create_player();
|
Danbooru.Ugoira.create_player();
|
||||||
$(Danbooru.Ugoira.player).on("loadProgress", function(ev, progress) {
|
$(Danbooru.Ugoira.player).on("loadProgress", function(ev, progress) {
|
||||||
$("#ugoira-load-percentage").val(progress * 100);
|
$("#ugoira-load-percentage").text(Math.floor(progress * 100));
|
||||||
});
|
});
|
||||||
$(Danbooru.Ugoira.player).on("loadingStateChanged", function(ev, state) {
|
$(Danbooru.Ugoira.player).on("loadingStateChanged", function(ev, state) {
|
||||||
if (state === 2) {
|
if (state === 2) {
|
||||||
|
|||||||
Reference in New Issue
Block a user