lordwelch 6fab6022d0 Remove grab
Switch to using bootstrap-table
Add DownThemAll plugin
Remove Firefox plugin
2021-01-09 16:36:18 -08:00

11 lines
217 B
TypeScript

"use strict";
// License: MIT
export function $<T extends HTMLElement>(
q: string, el?: HTMLElement | DocumentFragment | Document): T {
if (!el) {
el = document;
}
return el.querySelector<T>(q) as T;
}