From 3304690d93e1dd2f5dd3eca4d567be66045b25bc Mon Sep 17 00:00:00 2001 From: Maciej Pilarczyk Date: Fri, 11 Jan 2019 12:57:15 +0100 Subject: [PATCH] Fix fresh start --- chrome/extension/adswallet.js | 2 +- chrome/manifest.prod.json | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/chrome/extension/adswallet.js b/chrome/extension/adswallet.js index 8cb02a6..ed33091 100644 --- a/chrome/extension/adswallet.js +++ b/chrome/extension/adswallet.js @@ -7,7 +7,7 @@ import './adswallet.css'; function createHistory(initialState) { const history = createHashHistory(); - if (history.location.pathname === '/') { + if (history.location.pathname === '/' && initialState.router && initialState.router.location) { if (history.location.pathname !== initialState.router.location.pathname || history.location.search !== initialState.router.location.search || history.location.hash !== initialState.router.location.hash) { diff --git a/chrome/manifest.prod.json b/chrome/manifest.prod.json index fa92cac..ccd7bb9 100644 --- a/chrome/manifest.prod.json +++ b/chrome/manifest.prod.json @@ -3,7 +3,12 @@ "version": "0.1.1", "description": "Secure identity vault for Adshares network.", "author": "https://adshares.net/", - "permissions": [ "storage", "unlimitedStorage" ], + "permissions": [ + "storage", + "unlimitedStorage", + "clipboardWrite", + "tabs" + ], "content_security_policy": "default-src 'self'; script-src 'self'; style-src * 'unsafe-inline';font-src 'self' https://fonts.gstatic.com; img-src 'self' data:; connect-src 'self' https://rpc.adshares.net https://rpc.e11.click data:", "background": { "page": "background.html"