(params)
| 6793 | } |
| 6794 | |
| 6795 | function paramsToStr(params) { |
| 6796 | const paramKeys = Object.keys(params); |
| 6797 | if (paramKeys.length === 0) { |
| 6798 | return ''; |
| 6799 | } |
| 6800 | |
| 6801 | return '?' + paramKeys.map(key => key + '=' + encodeURIComponent(params[key])).join('&'); |
| 6802 | } |
| 6803 | |
| 6804 | function shouldCacheBust(opts) { |
| 6805 | const ua = (typeof navigator !== 'undefined' && navigator.userAgent) ? |