Add Firefox compatibility

This fixes the compatibility with Firefox. Apparently the method has a different name.