fix(modal): add support for Firefox