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 29abfd199b2a843518b6843d0cfebe080670acb3
Showing with 1 addition and 1 deletion.
  1. +1 −1 swfobject/src/swfobject.js
@@ -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.