Added a fix for newer versions of Chrome