Skip to content

Commit

Permalink
web,resource: fix resource path for zip files w/o a root dir
Browse files Browse the repository at this point in the history
  • Loading branch information
Bogdanp committed Mar 29, 2024
1 parent 45d4e3c commit e272a58
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion congame-web/pages/resource.rkt
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,9 @@
(define study-dir-path
(path-only study-path))
(define entry-path
(apply build-path study-dir-path path-elements))
(if study-dir-path
(apply build-path study-dir-path path-elements)
(apply build-path path-elements)))
(define data #"")
(unzip-entry
in dir (path->bytes entry-path)
Expand Down

0 comments on commit e272a58

Please sign in to comment.