mirror of
https://github.com/gorhill/uMatrix.git
synced 2024-06-26 10:01:08 +12:00
this fixes #47
This commit is contained in:
parent
667becf500
commit
9cc0e9bba0
|
@ -62,6 +62,9 @@
|
|||
|
||||
µm.userSettings = store;
|
||||
|
||||
// https://github.com/gorhill/uMatrix/issues/47
|
||||
µm.resizeLogBuffers(store.maxLoggedRequests);
|
||||
|
||||
// https://github.com/gorhill/httpswitchboard/issues/344
|
||||
µm.userAgentSpoofer.shuffle();
|
||||
|
||||
|
|
|
@ -385,6 +385,17 @@
|
|||
|
||||
/******************************************************************************/
|
||||
|
||||
µMatrix.resizeLogBuffers = function(size) {
|
||||
var pageStores = this.pageStats;
|
||||
for ( var pageURL in pageStores ) {
|
||||
if ( pageStores.hasOwnProperty(pageURL) ) {
|
||||
pageStores[pageURL].requests.resizeLogBuffer(size);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
/******************************************************************************/
|
||||
|
||||
µMatrix.forceReload = function(pageURL) {
|
||||
var tabId = this.tabIdFromPageUrl(pageURL);
|
||||
if ( tabId ) {
|
||||
|
|
|
@ -52,14 +52,8 @@
|
|||
// Post-change
|
||||
switch ( name ) {
|
||||
|
||||
// Need to visit each pageStats object to resize ring buffer
|
||||
case 'maxLoggedRequests':
|
||||
var pageStats = this.pageStats;
|
||||
for ( var pageUrl in pageStats ) {
|
||||
if ( pageStats.hasOwnProperty(pageUrl) ) {
|
||||
pageStats[pageUrl].requests.resizeLogBuffer(value);
|
||||
}
|
||||
}
|
||||
this.resizeLogBuffers(value);
|
||||
break;
|
||||
|
||||
// https://github.com/gorhill/httpswitchboard/issues/344
|
||||
|
|
Loading…
Reference in a new issue