Factored out platform.mobileSafari