Skip to main content
Makenot
.
work
Discover
Use Cases
Docs
Fan+
Login
Join
max
/
makenotwork
main
tag: launch-2026-06-01
tag: magicmirror-v0.1.1
tag: magicmirror-v0.3.0
tag: mnw-cli-v0.1.2
tag: mnw-cli-v0.1.3
tag: mnw-cli-v0.1.4
tag: pom-v0.4.1
tag: pom-v0.4.2
tag: pom-v0.4.3
tag: pom-v0.4.4
tag: pom-v0.4.5
tag: wam-v0.3.0
tag: wam-v0.3.1
Files
Commits
Tags
Notes
Issues
makenotwork
/
server
/
static
/
page-library-video.js
310 B · 7 lines
History
Blame
Raw
1
//
The route answers 303 to a presigned URL, so navigating to it IS the
2
//
download (`8fc6b1af`, option (a)). It used to answer JSON describing the
3
//
URL, which is why this was a fetch-then-assign.
4
function
downloadVersion
(
versionId
)
{
5
window
.
location
.
href
=
'
/api/versions/
'
+
versionId
+
'
/download
'
;
6
}
7