face-api/build/dom/resolveInput.js

8 lines
229 B
JavaScript
Raw Normal View History

2020-08-31 15:12:04 +02:00
import { env } from '../env';
export function resolveInput(arg) {
if (!env.isNodejs() && typeof arg === 'string') {
return document.getElementById(arg);
}
return arg;
}
//# sourceMappingURL=resolveInput.js.map