misc: lint
This commit is contained in:
parent
931827fc72
commit
02cc18395a
3 changed files with 4 additions and 4 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue