mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-22 09:57:02 +01: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;
|
||||
},
|
||||
// 2 calls per 5 minutes
|
||||
rateLimitCount: 2,
|
||||
rateLimitTimeout: 300000,
|
||||
},
|
||||
showInAppNotification: {
|
||||
method: (origin, message) => {
|
||||
@ -930,6 +933,9 @@ export default class MetamaskController extends EventEmitter {
|
||||
|
||||
return null;
|
||||
},
|
||||
// 5 calls per minute
|
||||
rateLimitCount: 5,
|
||||
rateLimitTimeout: 60000,
|
||||
},
|
||||
},
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user