navbar: fix https://github.com/rabuzarus/frio/issues/1 - use window.location.href instead of window.location.path
This commit is contained in:
parent
392169ca7a
commit
75c76775a5
1 changed files with 2 additions and 2 deletions
|
@ -56,8 +56,8 @@ $(document).ready(function(){
|
||||||
// correct url. The only way which comes to my mind was to do this with js
|
// correct url. The only way which comes to my mind was to do this with js
|
||||||
// So we apply the correct url (with the link to the id of the mask) after the page is loaded.
|
// So we apply the correct url (with the link to the id of the mask) after the page is loaded.
|
||||||
if($("#logo-img")) {
|
if($("#logo-img")) {
|
||||||
var path= "url('" + window.location.pathname + "#logo-mask')";
|
var pageurl = "url('" + window.location.href + "#logo-mask')";
|
||||||
$("#logo-img").css({"mask": path});
|
$("#logo-img").css({"mask": pageurl});
|
||||||
}
|
}
|
||||||
|
|
||||||
// make responsive tabmenu with flexmenu.js
|
// make responsive tabmenu with flexmenu.js
|
||||||
|
|
Loading…
Reference in a new issue