]> git.mxchange.org Git - friendica.git/commitdiff
navbar: fix https://github.com/rabuzarus/frio/issues/1 - use window.location.href...
authorrabuzarus <>
Tue, 3 May 2016 16:33:10 +0000 (18:33 +0200)
committerrabuzarus <>
Tue, 3 May 2016 16:33:10 +0000 (18:33 +0200)
js/theme.js

index 18eab67a5b8eb6164d3454f7a5b922297941c050..23862a33584bb999f3e1c67a6eb2c18ac8a4e8f6 100644 (file)
@@ -56,8 +56,8 @@ $(document).ready(function(){
        // 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.
        if($("#logo-img")) {
-               var path= "url('" + window.location.pathname + "#logo-mask')";
-               $("#logo-img").css({"mask": path});
+               var pageurl = "url('" + window.location.href + "#logo-mask')";
+               $("#logo-img").css({"mask": pageurl});
        }
 
        // make responsive tabmenu with flexmenu.js