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.

deleteCookies.js 560B

12345678910111213
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. function deleteCookies(names) {
  4. if (names === undefined) {
  5. return this.deleteAllCookies();
  6. }
  7. const namesList = Array.isArray(names) ? names : [names];
  8. if (namesList.every(obj => typeof obj !== 'string')) {
  9. return Promise.reject(new Error('Invalid input (see https://webdriver.io/docs/api/browser/deleteCookies.html for documentation.'));
  10. }
  11. return Promise.all(namesList.map(name => this.deleteCookie(name)));
  12. }
  13. exports.default = deleteCookies;