Show currently selected speed limits

This commit is contained in:
John Furrow
2016-01-09 09:51:08 -08:00
parent 88a4e9e00d
commit 58cbe5d55a
2 changed files with 104 additions and 128 deletions

View File

@@ -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;
}