+fix gstore 'is_local' check
This commit is contained in:
parent
a493db2bf2
commit
c8871cbab4
|
@ -26,7 +26,7 @@ gstore.add('menu_item', {
|
||||||
});
|
});
|
||||||
|
|
||||||
gstore.add('URI', document.URL.replace(/^(?:\/\/|[^\/]+)*/, ''));
|
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);
|
gstore.add('min_menu', false);
|
||||||
|
|
||||||
// // Proccess current page from url
|
// // Proccess current page from url
|
||||||
|
|
Loading…
Reference in New Issue