()
| 58 | } |
| 59 | |
| 60 | function getSnapshotFromHash() { |
| 61 | const hash = document.location.hash && document.location.hash.substring(1); |
| 62 | if (hash) { |
| 63 | try { |
| 64 | return JSON.parse(decodeURIComponent(hash)) as DataSourceSnapshot; |
| 65 | } |
| 66 | catch (e) { |
| 67 | // continue regardless of error |
| 68 | } |
| 69 | } |
| 70 | } |
| 71 | |
| 72 | let snapshotOnLoad = getSnapshotFromHash(); |
| 73 | if (snapshotOnLoad && snapshotOnLoad.dataSource && snapshotOnLoad.dataSource.dataSourceType === 'local') { |
no outgoing calls
no test coverage detected