fix ESLint weird conditionals
This commit is contained in:
Родитель
3033f9c4cc
Коммит
9920cec64e
|
@ -545,10 +545,16 @@ async function initCsatBanner () {
|
|||
toggleMobileFeatures(topNavigation)
|
||||
toggleArticles()
|
||||
toggleHeaderStates(header, win)
|
||||
document.forms ? (restoreInputs(), addFormListeners()) : null // TODO: what is this..?
|
||||
if (document.forms) {
|
||||
restoreInputs()
|
||||
addFormListeners()
|
||||
}
|
||||
})
|
||||
|
||||
document.forms ? (restoreInputs(), addFormListeners()) : null // TODO: what is this..?
|
||||
if (document.forms) {
|
||||
restoreInputs()
|
||||
addFormListeners()
|
||||
}
|
||||
|
||||
let windowWidth = win.outerWidth
|
||||
document.addEventListener('DOMContentLoaded', setHeaderHeight)
|
||||
|
|
|
@ -54,7 +54,8 @@ const scanResult = async (req, selfScan = false) => {
|
|||
|
||||
// Checks for a signedInUser arriving from doorhanger.
|
||||
if (signedInUser && url.searchParams.has('utm_source') && url.searchParams.get('utm_source') === 'firefox') {
|
||||
doorhangerScan = true, selfScan = true
|
||||
doorhangerScan = true
|
||||
selfScan = true
|
||||
specificBreach = allBreaches.find(thisBreach(req.query.breach))
|
||||
}
|
||||
|
||||
|
|
|
@ -233,8 +233,8 @@ if (AppConstants.FXA_ENABLED) {
|
|||
}
|
||||
app.use('/scan', ScanRoutes)
|
||||
app.use('/ses', SesRoutes)
|
||||
app.use('/user', UserRoutes);
|
||||
(devOrHeroku ? app.use('/email-l10n', EmailL10nRoutes) : null)
|
||||
app.use('/user', UserRoutes)
|
||||
if (devOrHeroku) app.use('/email-l10n', EmailL10nRoutes)
|
||||
app.use('/breach-details', BreachRoutes)
|
||||
app.use('/', HomeRoutes)
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче