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.

setCookies.js 527B

123456789101112
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. async function setCookies(cookieObjs) {
  4. const cookieObjsList = !Array.isArray(cookieObjs) ? [cookieObjs] : cookieObjs;
  5. if (cookieObjsList.some(obj => (typeof obj !== 'object'))) {
  6. throw new Error('Invalid input (see https://webdriver.io/docs/api/browser/setCookies.html for documentation.');
  7. }
  8. await Promise.all(cookieObjsList
  9. .map(cookieObj => this.addCookie(cookieObj)));
  10. return;
  11. }
  12. exports.default = setCookies;