MCPcopy Create free account
hub / github.com/mailru/FileAPI / getHash

Function getHash

flash/camera/html-template/history/history.js:191–196  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

189
190 /* Get the current location hash excluding the '#' symbol. */
191 function getHash() {
192 // It would be nice if we could use document.location.hash here,
193 // but it's faulty sometimes.
194 var idx = document.location.href.indexOf('#');
195 return (idx >= 0) ? document.location.href.substr(idx+1) : '';
196 }
197
198 /* Get the current location hash excluding the '#' symbol. */
199 function setHash(hash) {

Callers 3

hashChangeHandlerFunction · 0.70
checkForUrlChangeFunction · 0.70
history.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…