From c8871cbab4141ae9682d35c255b83f771d677fa6 Mon Sep 17 00:00:00 2001 From: xdrm-brackets Date: Tue, 20 Feb 2018 16:00:55 +0100 Subject: [PATCH] +fix gstore 'is_local' check --- 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 c91a88b..670cae1 100644 --- a/webpack/data/common.js +++ b/webpack/data/common.js @@ -26,7 +26,7 @@ gstore.add('menu_item', { }); gstore.add('URI', document.URL.replace(/^(?:\/\/|[^\/]+)*/, '')); -gstore.add('is_local', document.URL.replace(/^http:\/\/([^\/]+)(?::\d+)?\/?.*$/, '$1') == 'ptut.com'); +gstore.add('is_local', document.URL.replace(/^https?:\/\/([^\/:]+).*$/, '$1') == 'ptut.com'); gstore.add('min_menu', false); // // Proccess current page from url