Skip to content
This repository has been archived by the owner on Nov 27, 2018. It is now read-only.

Commit

Permalink
Merge pull request #16 from t-ashula/dbxss
Browse files Browse the repository at this point in the history
fixes doc.title override expressInstall's flashVars
  • Loading branch information
tensafefrogs committed Feb 22, 2013
2 parents 19f05ed + a5bf6b9 commit 9f74857
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions swfobject/src/swfobject.js
Expand Up @@ -360,9 +360,8 @@ var swfobject = function() {
att.id = EXPRESS_INSTALL_ID;
if (typeof att.width == UNDEF || (!/%$/.test(att.width) && toInt(att.width) < 310)) { att.width = "310"; }
if (typeof att.height == UNDEF || (!/%$/.test(att.height) && toInt(att.height) < 137)) { att.height = "137"; }
doc.title = doc.title.slice(0, 47) + " - Flash Player Installation";
var pt = ua.ie ? "ActiveX" : "PlugIn",
fv = "MMredirectURL=" + encodeURIComponent(win.location.toString().replace(/&/g,"%26")) + "&MMplayerType=" + pt + "&MMdoctitle=" + doc.title;
fv = "MMredirectURL=" + encodeURIComponent(win.location.toString().replace(/&/g,"%26")) + "&MMplayerType=" + pt + "&MMdoctitle=" + encodeURIComponent(doc.title.slice(0, 47) + " - Flash Player Installation");
if (typeof par.flashvars != UNDEF) {
par.flashvars += "&" + fv;
}
Expand Down

0 comments on commit 9f74857

Please sign in to comment.