MCPcopy Index your code
hub / github.com/meteor/meteor / getMeteorRuntimeConfigFromHTML

Function getMeteorRuntimeConfigFromHTML

tools/tool-testing/test-utils.js:105–111  ·  view source on GitHub ↗
(html)

Source from the content-addressed store, hash-verified

103}
104
105export function getMeteorRuntimeConfigFromHTML(html) {
106 var m = html.match(/__meteor_runtime_config__ = JSON.parse\(decodeURIComponent\("([^"]+?)"\)\)/);
107 if (! m) {
108 fail("Can't find __meteor_runtime_config__");
109 }
110 return JSON.parse(decodeURIComponent(m[1]));
111}
112
113// Poll the given app looking for the correct settings. Throws an error
114// if the settings aren't found after a timeout.

Callers

nothing calls this directly

Calls 3

failFunction · 0.90
parseMethod · 0.65
matchMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…