Removed a check which caused it to not work in Firefox