fixed safari not support window.URL

fixed safari not support window.URL