mirror of
https://github.com/pinry/pinry.git
synced 2025-11-13 16:45:41 +01:00
getUrlParameter fixes as in http://stackoverflow.com/a/8764051/166524
This commit is contained in:
@@ -56,9 +56,5 @@ function postPinData(data) {
|
||||
|
||||
|
||||
function getUrlParameter(name) {
|
||||
var decode = decodeURI(
|
||||
(RegExp(name + '=' + '(.+?)(&|$)').exec(location.search)||[,null])[1]
|
||||
);
|
||||
if (decode == 'null') return null;
|
||||
else return decode;
|
||||
return decodeURIComponent((new RegExp('[?|&]' + name + '=' + '([^&;]+?)(&|#|;|$)').exec(location.search)||[,""])[1].replace(/\+/g, '%20'))||null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user