diff --git a/src/lib/local/fulfill.js b/src/lib/local/fulfill.js index 789a77e..f8ae5c1 100644 --- a/src/lib/local/fulfill.js +++ b/src/lib/local/fulfill.js @@ -14,7 +14,7 @@ export default (givenPath, csp) => { if (!csp) csp = undefined; const basePath = extname(givenPath) ? dirname(givenPath) : givenPath; - const indexFile = extname(basePath) ? basename(basePath) : 'index.html'; + const indexFile = extname(givenPath) ? basename(givenPath) : 'index.html'; return async url => { url = new URL(url);