Skip to content

Commit

Permalink
Fix path to bundled resource: gradle-wrapper
Browse files Browse the repository at this point in the history
Otherwise, in the download zip we have `File not found` content inside gradle-wrapper.jar
  • Loading branch information
Aydar Mukhametzyanov committed Oct 12, 2021
1 parent fabcd91 commit 6110a40
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/jsMain/kotlin/org/jetbrains/webwiz/Main.kt
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ fun main() {
}

private fun generateProject(project: ProjectInfo) {
window.fetch(window.location.origin + window.location.pathname + "/binaries/gradle-wrapper")
window.fetch("./binaries/gradle-wrapper")
.then { response -> response.arrayBuffer() }
.then { gradleWrapperBlob ->
val zip = JSZip()
Expand Down

0 comments on commit 6110a40

Please sign in to comment.