Merge pull request #407 from poanetwork/vb-remove-permission

Remove excess extension permissions
This commit is contained in:
Victor Baranov 2020-08-04 10:48:17 +03:00 committed by GitHub
commit 816ae50411
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 9 deletions

View File

@ -2,6 +2,10 @@
## Current Master ## 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 ## 5.1.2 Fri Jul 10 2020
- [#400](https://github.com/poanetwork/nifty-wallet/pull/400) - (Fix) Fix RNS resolving - [#400](https://github.com/poanetwork/nifty-wallet/pull/400) - (Fix) Fix RNS resolving

View File

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

View File

@ -47,13 +47,6 @@ async function setupFetchMocking (driver) {
} }
return window.origFetch(...args) 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) { function clone (obj) {
return JSON.parse(JSON.stringify(obj)) return JSON.parse(JSON.stringify(obj))
} }