Make it work for chrome/macosX