From: rabuzarus <> Date: Tue, 3 May 2016 16:33:10 +0000 (+0200) Subject: navbar: fix https://github.com/rabuzarus/frio/issues/1 - use window.location.href... X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=75c76775a5f6fa13aab73f8babcbb9e4037182c6;p=friendica.git navbar: fix https://github.com/rabuzarus/frio/issues/1 - use window.location.href instead of window.location.path --- diff --git a/js/theme.js b/js/theme.js index 18eab67a5b..23862a3358 100644 --- a/js/theme.js +++ b/js/theme.js @@ -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