🔧 fix bug for web worker (#667)
🔧 fix bug for web worker (#667)

1: document is not available for web worker
2: location is available for web worker/UI thread
ali-sdk/ali-oss,ali-sdk/ali-oss,ali-sdk/ali-oss,ali-sdk/ali-oss