Fix hash parsing 2

This commit is contained in:
2019-12-08 09:51:19 +01:00
parent b401276c53
commit fed63345ca

2
jquery/databap.js vendored
View File

@@ -99,7 +99,7 @@ function Databap()
if(!hash) return decodeURIComponent(window.location.hash.slice(1)); if(!hash) return decodeURIComponent(window.location.hash.slice(1));
else else
{ {
window.location.hash = (hash.substr(0, 1)=='#'?'':'#')+hash; window.location.hash = '#'+encodeURIComponent(hash.slice(hash.substr(0, 1)=='#'?1:0));
//favicon, bug firefox //favicon, bug firefox
var link = $('link[rel="shortcut icon"]').remove().attr("href"); var link = $('link[rel="shortcut icon"]').remove().attr("href");