This commit is contained in:
Lapo Luchini
2014-05-28 16:09:22 +02:00
parent a2ab9a2b8c
commit e1e2c07f2b

View File

@@ -56,9 +56,5 @@ function postPinData(data) {
function getUrlParameter(name) { function getUrlParameter(name) {
var decode = decodeURI( return decodeURIComponent((new RegExp('[?|&]' + name + '=' + '([^&;]+?)(&|#|;|$)').exec(location.search)||[,""])[1].replace(/\+/g, '%20'))||null;
(RegExp(name + '=' + '(.+?)(&|$)').exec(location.search)||[,null])[1]
);
if (decode == 'null') return null;
else return decode;
} }