MCPcopy Create free account
hub / github.com/ampproject/amphtml / removeParamFromLocationHashParams

Function removeParamFromLocationHashParams

validator/js/webui/webui.js:18–22  ·  view source on GitHub ↗
(param)

Source from the content-addressed store, hash-verified

16
17// Removes given parameter from window.location.hash.
18function removeParamFromLocationHashParams(param) {
19 const params = getLocationHashParams();
20 delete params[param];
21 setLocationHashParams(params);
22}
23
24// Sets window.location hash based on a dictionary of parameters.
25function setLocationHashParams(params) {

Callers

nothing calls this directly

Calls 2

getLocationHashParamsFunction · 0.85
setLocationHashParamsFunction · 0.85

Tested by

no test coverage detected