diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 8a443e02..e9634500 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -1,19 +1,19 @@ { "name": "Pi-hole web devcontainer", "dockerFile": "Dockerfile", - // Use 'postCreateCommand' to run commands after the container is created. - "postCreateCommand": "npm install", - "customizations": { - // Configure properties specific to VS Code. - "vscode": { - "settings": {}, - "extensions": [ - "eamodio.gitlens", - "EditorConfig.EditorConfig", - "github.vscode-github-actions" - ] - } - }, + // Use 'postCreateCommand' to run commands after the container is created. + "postCreateCommand": "npm install", + "customizations": { + // Configure properties specific to VS Code. + "vscode": { + "settings": {}, + "extensions": [ + "eamodio.gitlens", + "EditorConfig.EditorConfig", + "github.vscode-github-actions" + ] + } + }, "containerEnv": { "GIT_EDITOR": "nano" }, diff --git a/.editorconfig b/.editorconfig index 81d63a06..e0029320 100644 --- a/.editorconfig +++ b/.editorconfig @@ -17,7 +17,7 @@ indent_size = 2 [*.js] indent_size = 2 -[package.json] +[*.json] indent_size = 2 [.yamllint.conf] diff --git a/scripts/pi-hole/js/queries.js b/scripts/pi-hole/js/queries.js index 6657d210..eb3a79e6 100644 --- a/scripts/pi-hole/js/queries.js +++ b/scripts/pi-hole/js/queries.js @@ -230,8 +230,8 @@ function formatReplyTime(replyTime, type) { return replyTime < 1e-4 ? (1e6 * replyTime).toFixed(1) + " µs" : replyTime < 1 - ? (1e3 * replyTime).toFixed(1) + " ms" - : replyTime.toFixed(1) + " s"; + ? (1e3 * replyTime).toFixed(1) + " ms" + : replyTime.toFixed(1) + " s"; } // else: return the number itself (for sorting and searching)