MCPcopy Create free account
hub / github.com/csskit/csskit / handleEvent

Method handleEvent

website/script/index.js:655–661  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

653 }
654
655 handleEvent(e) {
656 const url = new URL(window.location);
657 url.searchParams.set("example", this.example);
658 url.searchParams.delete("code");
659 window.history.replaceState({ path: url.toString() }, null, url.toString());
660 this.loadExample(this.example);
661 }
662
663 setValueFromUrl() {
664 const url = new URL(window.location);

Callers

nothing calls this directly

Calls 3

loadExampleMethod · 0.95
setMethod · 0.80
deleteMethod · 0.80

Tested by

no test coverage detected