MCPcopy
hub / github.com/ritwickdey/vscode-live-server / GET_INJECTED_CODE

Function GET_INJECTED_CODE

lib/live-server/index.js:30–36  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

28
29let useBrowserExtension = false;
30let GET_INJECTED_CODE = () => {
31 if (!GET_INJECTED_CODE.cache){
32 GET_INJECTED_CODE.cache = fs.readFileSync(path.join(__dirname, "injected.html"), "utf8");
33 }
34
35 return useBrowserExtension === true ? '' : GET_INJECTED_CODE.cache;
36}
37
38var LiveServer = {
39 server: null,

Callers 1

injectFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected