()
| 54 | } |
| 55 | |
| 56 | export function getProjectId() { |
| 57 | if (import.meta.env.DEV) { |
| 58 | return storage.getItem("pd.projectId") ?? ""; |
| 59 | } |
| 60 | const match = window.location.pathname.match(/\/project\/([a-zA-Z0-9]+)/); |
| 61 | return match ? match[1] : ""; |
| 62 | } |
| 63 | |
| 64 | export function getProjectZipUrl() { |
| 65 | const projectId = getProjectId(); |
no test coverage detected