face-api/build/dom/resolveInput.js

8 lines
229 B
JavaScript
Raw Normal View History

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