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) {