MCPcopy Create free account
hub / github.com/GamerHack/GamerHack.github.io / onpopstate

Function onpopstate

g2all/900/psfree.js:206–214  ·  view source on GitHub ↗
(event)

Source from the content-addressed store, hash-verified

204 let num_blurs = 0;
205 const pop_promise = new Promise((resolve, reject) => {
206 function onpopstate(event) {
207 // debug_log('pop came');
208 if (num_blurs === 0) {
209 const r = reject;
210 r(new DieError(`pop came before blur. blurs: ${num_blurs}`));
211 }
212 pop = event;
213 resolve();
214 }
215 addEventListener('popstate', onpopstate, { once: true });
216 });
217

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected