summary refs log tree commit diff
path: root/scripts/client.js
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/client.js')
-rw-r--r--scripts/client.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/scripts/client.js b/scripts/client.js

index 3cdd3719..4756fe46 100644 --- a/scripts/client.js +++ b/scripts/client.js
@@ -232,15 +232,15 @@ const processFile = async (name) => { console.log(); - var existing = await fs.readdir(CACHE_PATH); + let existing = await fs.readdir(CACHE_PATH); while (existing.length > 0) { - var file = existing.shift(); + let file = existing.shift(); process.stdout.write( `Patching existing ${file}. Remaining: ${existing.length}. \r`, ); - var text = await fs.readFile(path.join(CACHE_PATH, file)); + let text = await fs.readFile(path.join(CACHE_PATH, file)); if (file.includes(".js") || file.includes(".css")) { text = doPatch(text.toString()); await fs.writeFile(path.join(CACHE_PATH, file), text.toString()); @@ -260,7 +260,7 @@ const processFile = async (name) => { let promises = []; - for (var i = 0; i < assets.length; i++) { + for (let i = 0; i < assets.length; i++) { const asset = assets[i]; if (existsSync(path.join(CACHE_PATH, `${asset}.js`))) {