mirror of
https://github.com/zoriya/flood.git
synced 2025-12-20 06:05:15 +00:00
Show currently selected speed limits
This commit is contained in:
@@ -23,7 +23,15 @@ class ClientDataStoreClass extends BaseStore {
|
||||
}
|
||||
}
|
||||
|
||||
getThrottles() {
|
||||
getThrottles(options = {}) {
|
||||
if (options.latest) {
|
||||
return {
|
||||
download: this.throttles.download ?
|
||||
this.throttles.download[this.throttles.download.length - 1] : null,
|
||||
upload: this.throttles.upload ?
|
||||
this.throttles.upload[this.throttles.upload.length - 1] : null
|
||||
};
|
||||
}
|
||||
return this.throttles;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user