Remove excess permissions

This commit is contained in:
Victor Baranov 2020-08-04 09:29:42 +03:00
parent 725f95600e
commit f3725b79ae
3 changed files with 5 additions and 9 deletions

View File

@ -2,6 +2,10 @@
## Current Master
## 5.1.3 Tue Aug 04 2020
- [#407](https://github.com/poanetwork/nifty-wallet/pull/407) - Remove excess extension permissions
## 5.1.2 Fri Jul 10 2020
- [#400](https://github.com/poanetwork/nifty-wallet/pull/400) - (Fix) Fix RNS resolving

View File

@ -1,7 +1,7 @@
{
"name": "__MSG_appName__",
"short_name": "__MSG_appName__",
"version": "5.1.2",
"version": "5.1.3",
"manifest_version": 2,
"author": "POA Network",
"description": "__MSG_appDescription__",
@ -69,7 +69,6 @@
"http://localhost:8545/",
"https://*.infura.io/",
"activeTab",
"webRequest",
"*://*.eth/",
"notifications"
],

View File

@ -47,13 +47,6 @@ async function setupFetchMocking (driver) {
}
return window.origFetch(...args)
}
if (window.chrome && window.chrome.webRequest) {
window.chrome.webRequest.onBeforeRequest.addListener(cancelInfuraRequest, { urls: ['https://*.infura.io/*'] }, ['blocking'])
}
function cancelInfuraRequest (requestDetails) {
console.log(`fetchMocking - Canceling request: "${requestDetails.url}"`)
return { cancel: true }
}
function clone (obj) {
return JSON.parse(JSON.stringify(obj))
}