misc: lint

This commit is contained in:
jean-emmanuel 2025-12-09 22:17:45 +01:00
parent 931827fc72
commit 02cc18395a
3 changed files with 4 additions and 4 deletions

View file

@ -2,7 +2,7 @@ import {DOM} from '../globals.mjs'
import {device, os} from './utils.mjs'
iOS = (device.is('mobile') || device.is('tablet')) && os.is('ios')
var iOS = (device.is('mobile') || device.is('tablet')) && os.is('ios')
// Prevent iOS Pull-To-Refresh

View file

@ -228,9 +228,9 @@ class UiTree extends UiWidget {
treeRect = this.wrapper.getBoundingClientRect()
if (nodeRect.top < treeRect.top) {
node.scrollIntoView({block: 'start'});
node.scrollIntoView({block: 'start'})
} else if (nodeRect.bottom > treeRect.bottom) {
node.scrollIntoView({block: 'nearest'});
node.scrollIntoView({block: 'nearest'})
}
this.wrapper.scrollLeft = (node.depth - 1) * 20
}

View file

@ -140,7 +140,7 @@ class WebServer extends EventEmitter {
var lastModified = new Date(stats.mtime)
lastModified.setMilliseconds(0)
res.setHeader('Cache-Control', 'no-cache')
res.setHeader("Last-Modified", lastModified.toUTCString())
res.setHeader('Last-Modified', lastModified.toUTCString())
if (
req.headers['if-modified-since'] && new Date(req.headers['if-modified-since']).getTime() >= lastModified.getTime()
) {