mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 01:39:44 +01:00
commit
cb0a9c7079
@ -120,7 +120,7 @@ function remoteStoreWithLocalStorageCache (storageKey) {
|
||||
return store
|
||||
}
|
||||
|
||||
function eachJsonMessage(payload, transformFn){
|
||||
function eachJsonMessage (payload, transformFn) {
|
||||
if (Array.isArray(payload)) {
|
||||
return payload.map(transformFn)
|
||||
} else {
|
||||
|
@ -1,7 +1,7 @@
|
||||
const MAX = Number.MAX_SAFE_INTEGER
|
||||
|
||||
let idCounter = Math.round( Math.random() * MAX )
|
||||
function createRandomId() {
|
||||
let idCounter = Math.round(Math.random() * MAX)
|
||||
function createRandomId () {
|
||||
idCounter = idCounter % MAX
|
||||
return idCounter++
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user