diff options
Diffstat (limited to 'devtools/client/netmonitor/src/middleware')
-rw-r--r-- | devtools/client/netmonitor/src/middleware/batching.js | 2 | ||||
-rw-r--r-- | devtools/client/netmonitor/src/middleware/prefs.js | 4 | ||||
-rw-r--r-- | devtools/client/netmonitor/src/middleware/throttling.js | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/devtools/client/netmonitor/src/middleware/batching.js b/devtools/client/netmonitor/src/middleware/batching.js index 9d8c57084c..c546cc2e22 100644 --- a/devtools/client/netmonitor/src/middleware/batching.js +++ b/devtools/client/netmonitor/src/middleware/batching.js @@ -20,7 +20,7 @@ const REQUESTS_REFRESH_RATE = 50; // ms * - BATCH_ENABLE can be used to enable and disable the batching. * - BATCH_RESET discards the actions that are currently in the queue. */ -function batchingMiddleware(store) { +function batchingMiddleware() { return next => { let queuedActions = []; let enabled = true; diff --git a/devtools/client/netmonitor/src/middleware/prefs.js b/devtools/client/netmonitor/src/middleware/prefs.js index 6034a95dbf..2ccbb4db3c 100644 --- a/devtools/client/netmonitor/src/middleware/prefs.js +++ b/devtools/client/netmonitor/src/middleware/prefs.js @@ -30,8 +30,8 @@ function prefsMiddleware(store) { const filters = Object.entries( store.getState().filters.requestFilterTypes ) - .filter(([type, check]) => check) - .map(([type, check]) => type); + .filter(([, check]) => check) + .map(([type]) => type); Services.prefs.setCharPref( "devtools.netmonitor.filters", JSON.stringify(filters) diff --git a/devtools/client/netmonitor/src/middleware/throttling.js b/devtools/client/netmonitor/src/middleware/throttling.js index 30f5a9b5f4..ac72b556bb 100644 --- a/devtools/client/netmonitor/src/middleware/throttling.js +++ b/devtools/client/netmonitor/src/middleware/throttling.js @@ -14,7 +14,7 @@ const { * according to user actions. */ function throttlingMiddleware(connector) { - return store => next => action => { + return () => next => action => { const res = next(action); if (action.type === CHANGE_NETWORK_THROTTLING) { connector.updateNetworkThrottling(action.enabled, action.profile); |