From 913fda748dfb88f7e61e6dbaf15aa67e59756342 Mon Sep 17 00:00:00 2001 From: bat Date: Sun, 14 May 2023 06:59:06 +0000 Subject: [PATCH] fix paths --- frontend.js | 3 +-- server.js | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/frontend.js b/frontend.js index e11dc0e..35ca436 100644 --- a/frontend.js +++ b/frontend.js @@ -53,13 +53,12 @@ export class Frontend { } async loadFile(user, repo, commit, src, dest) { - const url = this.rawUrl(user, repo, commit, dest) + const url = this.rawUrl(user, repo, commit, src) const resp = await fetch(url) this.checkOk(resp) const body = await resp.arrayBuffer() const ext = dest.at('-1')?.match?.(/\.(\w+)$/)?.[1] const contentType = this.contentTypes[ext] - console.log({ext, contentType}) this.files[this.pathString(dest)] = { user, repo, diff --git a/server.js b/server.js index b602c15..e9bec63 100644 --- a/server.js +++ b/server.js @@ -56,7 +56,6 @@ export class Server { 'settings', 'dialog', 'storage', - 'pages', 'editor-lib-codemirror', ] for (const repo of repos) {