Browse files

Added latest js script

  • Loading branch information...
1 parent 8bff150 commit 898a8c4ca267d0c938a7b21a36f2c243f0fc1e8f @melpomene committed Jul 1, 2011
Showing with 3 additions and 11 deletions.
  1. +3 −11 flattrbutton.js
View
14 flattrbutton.js
@@ -1,6 +1,6 @@
var scripts = document.getElementsByTagName("script");
-var tag = script[script.length-1];
-var src = instance.getAttribute('src');
+var tag = scripts[scripts.length-1];
+var src = tag.getAttribute('src');
var pos = src.indexOf('?');
if (pos) {
var qs = src.substring(++pos);
@@ -48,12 +48,4 @@ if(document.querySelectorAll){
}
}
}
-FlattrLoader.setup();
-
-
-
-
-
-
-
-
+FlattrLoader.setup();

0 comments on commit 898a8c4

Please sign in to comment.