mirror of
https://github.com/schlagmichdoch/PairDrop.git
synced 2026-04-18 07:12:15 +00:00
Solve "transfer-complete" and "receive-complete" status detection via css instead of adding a new class
This commit is contained in:
@@ -807,16 +807,11 @@ class PeerUI {
|
||||
this.$el.querySelector('.status').innerText = statusName;
|
||||
this._currentStatus = status;
|
||||
|
||||
if (status === "transfer-complete" || status === "receive-complete") {
|
||||
this.$el.classList.remove('blink');
|
||||
|
||||
if (status.indexOf("-complete") || status === "receive-complete") {
|
||||
this.statusTimeout = setTimeout(() => {
|
||||
this.setProgress(0, null);
|
||||
}, 10000);
|
||||
}
|
||||
else {
|
||||
this.$el.classList.add('blink');
|
||||
}
|
||||
}
|
||||
|
||||
_onDrop(e) {
|
||||
|
||||
Reference in New Issue
Block a user