+fix gstore 'is_local' check

This commit is contained in:
xdrm-brackets 2018-02-20 16:00:55 +01:00
parent a493db2bf2
commit c8871cbab4
1 changed files with 1 additions and 1 deletions

View File

@ -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