()
| 334 | } |
| 335 | |
| 336 | function guid(): string { |
| 337 | const s4 = () => { |
| 338 | return Math.floor((1 + Math.random()) * 0x10000) |
| 339 | .toString(16) |
| 340 | .slice(1); |
| 341 | }; |
| 342 | // return id of format 'aaaaaaaa'-'aaaa'-'aaaa'-'aaaa'-'aaaaaaaaaaaa' |
| 343 | return `${s4()}${s4()}-${s4()}-${s4()}-${s4()}-${s4()}${s4()}${s4()}`; |
| 344 | } |
| 345 | |
| 346 | function hashFromTabContents(args: { |
| 347 | query: string | null; |
no test coverage detected