mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-10-22 11:22:43 +02:00
[FLASK] Update rate limits for showInAppNotification
and showNativeNotification
(#19621)
This commit is contained in:
parent
39e033ea00
commit
0d0705bb68
@ -919,6 +919,9 @@ export default class MetamaskController extends EventEmitter {
|
|||||||
|
|
||||||
return null;
|
return null;
|
||||||
},
|
},
|
||||||
|
// 2 calls per 5 minutes
|
||||||
|
rateLimitCount: 2,
|
||||||
|
rateLimitTimeout: 300000,
|
||||||
},
|
},
|
||||||
showInAppNotification: {
|
showInAppNotification: {
|
||||||
method: (origin, message) => {
|
method: (origin, message) => {
|
||||||
@ -930,6 +933,9 @@ export default class MetamaskController extends EventEmitter {
|
|||||||
|
|
||||||
return null;
|
return null;
|
||||||
},
|
},
|
||||||
|
// 5 calls per minute
|
||||||
|
rateLimitCount: 5,
|
||||||
|
rateLimitTimeout: 60000,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user