(params)
| 6801 | } |
| 6802 | |
| 6803 | function paramsToStr(params) { |
| 6804 | const paramKeys = Object.keys(params); |
| 6805 | if (paramKeys.length === 0) { |
| 6806 | return ''; |
| 6807 | } |
| 6808 | |
| 6809 | return '?' + paramKeys.map(key => key + '=' + encodeURIComponent(params[key])).join('&'); |
| 6810 | } |
| 6811 | |
| 6812 | function shouldCacheBust(opts) { |
| 6813 | const ua = (typeof navigator !== 'undefined' && navigator.userAgent) ? |