Permalink
Browse files

Merge pull request #7 from jonathantneal/master

Thanks jonathantneal
  • Loading branch information...
2 parents f9ddf66 + 8b5f66e commit 50a45f3b623690056b88f7b6c01ffd7fe3b25b8f @MrSwitch committed Mar 13, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 dropfile.js
View
@@ -60,7 +60,7 @@ if (!window.Silverlight) window.Silverlight = {}; Silverlight._silverlightCount
var path = (function (){
var s = document.getElementsByTagName('script'),
p = s[s.length-1];
- return (p.src?p.src:p.getAttribute('src')).match(/(.*\/)/)[0] || "";
+ return ((p.src?p.src:p.getAttribute('src')).match(/(.*\/)/) || [""])[0];
})();
/**

0 comments on commit 50a45f3

Please sign in to comment.