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.

index.js 703B

123456789101112131415161718
  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 edge_1 = __importDefault(require("./edge"));
  7. const firefox_1 = __importDefault(require("./firefox"));
  8. exports.default = (browserName, platform) => {
  9. const finder = {
  10. firefox: firefox_1.default,
  11. edge: edge_1.default
  12. }[browserName];
  13. const supportedPlatforms = Object.keys(finder);
  14. if (!supportedPlatforms.includes(platform)) {
  15. throw new Error(`Operating system ("${process.platform}") is not supported`);
  16. }
  17. return finder[platform];
  18. };