From 8bd98484aafe6a9437f592a3601d5e68eb2c6432 Mon Sep 17 00:00:00 2001 From: xdrm-brackets Date: Sat, 9 Jun 2018 12:20:45 +0200 Subject: [PATCH] make login HOST generic --- webpack/data/common.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webpack/data/common.js b/webpack/data/common.js index 4bc77c5..1201c0c 100644 --- a/webpack/data/common.js +++ b/webpack/data/common.js @@ -19,7 +19,7 @@ gstore.add('URI', document.URL.replace(/^(?:\/\/|[^\/]+)*/, '').split('/').filte gstore.add('is_local', document.URL.replace(/^https?:\/\/([^\/:]+).*$/, '$1') == 'ptut.com'); /* (4) API instance */ -window.api = new APIClient(gstore.get.is_local ? 'http://ptut.com:8080/api/v/1.0/' : 'https://ptut.xdrm.io/api/v/1.0/'); +window.api = new APIClient(gstore.get.is_local ? 'http://ptut.com:8080/api/v/1.0/' : `${gstore.get.HOST}/api/v/1.0/`); /* (5) PopUp instance */ window.popup = new PopUp();