Skip to content
This repository has been archived by the owner on Nov 27, 2018. It is now read-only.
Permalink
Browse files
Change comparison to be less strict.
And save a couple chars :-)
  • Loading branch information
tersmitten committed Oct 18, 2013
1 parent e7156ca commit 29abfd1
Showing 1 changed file with 1 addition and 1 deletion.
@@ -783,7 +783,7 @@ var swfobject = function () {
var q = doc.location.search || doc.location.hash;
if (q) {
if (/\?/.test(q)) { q = q.split("?")[1]; } // strip question mark
if (param === null) {
if (!param) {
return urlEncodeIfNecessary(q);
}
var pairs = q.split("&");

0 comments on commit 29abfd1

Please sign in to comment.