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

Method setValueFromUrl

website/script/index.js:663–667  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

661 }
662
663 setValueFromUrl() {
664 const url = new URL(window.location);
665 if (!url.searchParams.has("example")) return;
666 this.loadExample(url.searchParams.get("example"));
667 }
668
669 async loadExample(example) {
670 if (example == "") {

Callers 1

connectedCallbackMethod · 0.95

Calls 3

loadExampleMethod · 0.95
hasMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected