(pairs = {})
| 29 | } |
| 30 | |
| 31 | const buildHashString = (pairs = {}) => { |
| 32 | const hs = [] |
| 33 | for (let key in pairs) { |
| 34 | hs.push(`${key}=${encodeURIComponent(pairs[key])}`) |
| 35 | } |
| 36 | return '#' + hs.join('&') |
| 37 | } |
| 38 | |
| 39 | export const setHashString = (fileMap) => { |
| 40 | const multiFile = Object.keys(fileMap).length > 1 |