Merge pull request #257 from brigadier/patch-1

split hash from CURRENT_URL
This commit is contained in:
Aigars Silkalns 2016-08-25 13:37:00 +03:00 committed by GitHub
commit 4cf0b8a0e7

View file

@ -4,7 +4,7 @@
* and open the template in the editor.
*/
var CURRENT_URL = window.location.href.split('?')[0],
var CURRENT_URL = window.location.href.split('#')[0].split('?')[0],
$BODY = $('body'),
$MENU_TOGGLE = $('#menu_toggle'),
$SIDEBAR_MENU = $('#sidebar-menu'),
@ -241,4 +241,4 @@ if (typeof NProgress != 'undefined') {
$(window).load(function () {
NProgress.done();
});
}
}