• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

mozilla / blurts-server / #13209

pending completion
#13209

push

circleci

toufali
Merge branch 'main' into MNTOR-1509-fix-broken-ga

282 of 1659 branches covered (17.0%)

Branch coverage included in aggregate %.

107 of 107 new or added lines in 9 files covered. (100.0%)

959 of 4499 relevant lines covered (21.32%)

1.78 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/client/js/partials/landing.js
1
/* This Source Code Form is subject to the terms of the Mozilla Public
2
 * License, v. 2.0. If a copy of the MPL was not distributed with this
3
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
4

5
/** @type {HTMLDivElement} */
6
// @ts-ignore: We guard against a null value by not calling init():
7
const landingPartial = document.querySelector("[data-partial='landing']")
×
8

9
if (landingPartial) {
×
10
  init()
×
11
}
12

13
async function init () {
14
  const landingForm = landingPartial.querySelector('form.exposure-scan')
×
15
  if (!(landingForm instanceof HTMLFormElement)) {
×
16
    return
×
17
  }
18
  landingForm.addEventListener('submit', (e) => {
×
19
    e.preventDefault()
×
20
    const emailField = landingForm.elements.namedItem('email')
×
21
    const newLocation = new URL(document.location)
×
22
    newLocation.pathname = '/scan/'
×
23
    newLocation.hash = `#email=${encodeURIComponent(emailField.value)}`
×
24
    document.location = newLocation.href
×
25
  })
26
  landingForm.hidden = false
×
27
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc