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