MCPcopy Create free account
hub / github.com/thetarnav/solid-devtools / script_text_detect_solid

Function script_text_detect_solid

packages/shared/src/detect.ts:10–18  ·  view source on GitHub ↗
(src: string)

Source from the content-addressed store, hash-verified

8export const SOLID_DEV_GLOBAL = 'Solid$$'
9
10function script_text_detect_solid(src: string): boolean {
11 return src.includes(`$DX_DELEGATE`)
12 || src.includes(`getAttribute("data-hk")`)
13 || src.includes(`getAttribute('data-hk')`)
14 || src.includes(`hasAttribute("data-hk")`)
15 || src.includes(`hasAttribute('data-hk')`)
16 || src.includes(`Symbol("solid-track")`)
17 || src.includes(`Symbol('solid-track')`)
18}
19
20/**
21Detects if SolidJS is present on the page. In either development or production mode.

Callers 1

check_for_solidFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…