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.

url.js 653B

1234567891011121314151617
  1. "use strict";
  2. var __importDefault = (this && this.__importDefault) || function (mod) {
  3. return (mod && mod.__esModule) ? mod : { "default": mod };
  4. };
  5. Object.defineProperty(exports, "__esModule", { value: true });
  6. const url_1 = __importDefault(require("url"));
  7. const utils_1 = require("../../utils");
  8. function url(path) {
  9. if (typeof path !== 'string') {
  10. throw new Error('Parameter for "url" command needs to be type of string');
  11. }
  12. if (typeof this.options.baseUrl === 'string') {
  13. path = url_1.default.resolve(this.options.baseUrl, path);
  14. }
  15. return this.navigateTo(utils_1.validateUrl(path));
  16. }
  17. exports.default = url;