Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

flash upgrader MDL-20841 fix swfobject javascript bug related to http…

  • Loading branch information...
commit e223319801f1f5b3ab0378c8c6cf45daaa6a162f 1 parent 53bc035
@mouneyrac mouneyrac authored
Showing with 7 additions and 0 deletions.
  1. +7 −0 lib/swfobject/swfobject.js
View
7 lib/swfobject/swfobject.js
@@ -1,3 +1,5 @@
+//one change has been done related to http://code.google.com/p/swfobject/issues/detail?id=332
+//we added lines: 204, 205, 207, 208, 209 (try-catch)
/*! SWFObject v2.2 <http://code.google.com/p/swfobject/>
is released under the MIT License <http://www.opensource.org/licenses/mit-license.php>
*/
@@ -199,7 +201,12 @@ var swfobject = function() {
var counter = 0;
(function(){
if (typeof t.GetVariable != UNDEF) {
+ try
+ {
var d = t.GetVariable("$version");
+ } catch(err) {
+ //Handle errors here
+ }
if (d) {
d = d.split(" ")[1].split(",");
ua.pv = [parseInt(d[0], 10), parseInt(d[1], 10), parseInt(d[2], 10)];
Please sign in to comment.
Something went wrong with that request. Please try again.