Software zum Installieren eines Smart-Mirror Frameworks , zum Nutzen von hochschulrelevanten Informationen, auf einem Raspberry-Pi.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

getElementProperty.js 505B

123456789101112131415
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. const utils_1 = require("../utils");
  4. async function getElementProperty({ elementId, name }) {
  5. const elementHandle = await this.elementStore.get(elementId);
  6. if (!elementHandle) {
  7. throw utils_1.getStaleElementError(elementId);
  8. }
  9. const jsHandle = await elementHandle.getProperty(name);
  10. if (!jsHandle) {
  11. return null;
  12. }
  13. return jsHandle.jsonValue();
  14. }
  15. exports.default = getElementProperty;