From e57946c9047ba72a9a0f269bce7670bfec937130 Mon Sep 17 00:00:00 2001
From: Alex <apuret@e-biz.fr>
Date: Fri, 27 Nov 2020 12:26:36 +0100
Subject: [PATCH] feat: adapt adresses for different env

---
 plugins/deadlock-extension/src/view/briefingView.ts | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/plugins/deadlock-extension/src/view/briefingView.ts b/plugins/deadlock-extension/src/view/briefingView.ts
index f65c8711..77fc224a 100644
--- a/plugins/deadlock-extension/src/view/briefingView.ts
+++ b/plugins/deadlock-extension/src/view/briefingView.ts
@@ -93,7 +93,11 @@ export default class BriefingView extends WebviewBase {
       if (key !== "3000") {
         pathsLength++;
         const path = paths[key];
-        adresses += `<li>${key} binded on <a href="https://${userConfig.getHost()}/${path}/">${path}</a></li>`;
+        if (userConfig.getHost() === 'localhost') {
+          adresses += `<li>${key} binded on <a href="http://${userConfig.getHost()}:${path}">${path}</a></li>`;
+        } else {
+          adresses += `<li>${key} binded on <a href="https://${userConfig.getHost()}/${path}/">${path}</a></li>`;
+        }
       }
     }
 
-- 
GitLab