PageSourceSearch

https://session-replay.com/assets/controllers/og_preview_controlle…4ef89980ec07feefc31ad0223c39c461636a235f.js

js session-replay.com collected 2026-09-24 13:51:03 UTC 524 bytes, 22 lines download raw bytes

1import { Controller } from "@hotwired/stimulus"
2
3export default class extends Controller {
4  static targets = ["issue", "image"]
5
6  connect() {
7    this.imageTargets.forEach((image) => {
8      if (image.complete && image.naturalWidth === 0) this.markFailed(image)
9    })
10  }
11
12  imageFailed(event) {
13    this.markFailed(event.target)
14  }
15
16  markFailed(image) {
17    const card = image.closest(".og-card")
18    if (card) card.classList.add("is-failed")
19
20    this.issueTargets.forEach((issue) => { issue.hidden = false })
21  }
22};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.