From 86c5a6138cdf516ec537b7aa51347256614e8690 Mon Sep 17 00:00:00 2001 From: Axel Chalon Date: Wed, 11 Jul 2018 16:11:36 +0200 Subject: [PATCH] Fix network dapp icons not displaying in dapp-dapp-visible (#164) --- electron/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/electron/index.js b/electron/index.js index 9804a7dee..e7c7a7f8a 100644 --- a/electron/index.js +++ b/electron/index.js @@ -159,8 +159,8 @@ function createWindow () { if (baseUrl && !details.url.startsWith(baseUrl) && // dapp-dapp-visible needs to be able to display the icons of other - // dapps, so as a temporary fix we allow access to all .png files - !url.parse(details.url).pathname.endsWith('.png')) { + // dapps, so as a temporary fix we allow access to all images requests + details.resourceType !== 'image') { const sanitizedUrl = details.url.replace(/'/, ''); if (!webContents.isDestroyed()) {