mirror of
https://github.com/mickael-kerjean/filestash
synced 2025-12-18 22:39:19 +01:00
6 lines
242 B
JavaScript
6 lines
242 B
JavaScript
export function qs($node, selector) {
|
|
if (!$node) throw new Error("undefined node");
|
|
const $target = $node.querySelector(selector);
|
|
if (!$target) throw new Error(`undefined node for selector '${selector}'`);
|
|
return $target;
|
|
}
|