MCPcopy Create free account
hub / github.com/emscripten-core/emscripten / getValueOfParam

Function getValueOfParam

src/memoryprofiler.js:288–291  ·  view source on GitHub ↗
(key)

Source from the content-addressed store, hash-verified

286 document.body.appendChild(div);
287
288 function getValueOfParam(key) {
289 var results = (new RegExp("[\\?&]"+key+"=([^&#]*)")).exec(location.href);
290 return results ? results[1] : '';
291 }
292 // Allow specifying a precreated filter in page URL ?query parameters for convenience.
293 if (document.getElementById('sbrkFilter').value = getValueOfParam('sbrkFilter')) {
294 document.getElementById('showHeapResizes').checked = true;

Callers 1

populateHtmlBodyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected