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.

switchToWindow.js 479B

1234567891011121314
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. async function switchToWindow({ handle }) {
  4. if (!this.windows.has(handle)) {
  5. throw new Error(`window with handle ${handle} not found`);
  6. }
  7. delete this.currentFrame;
  8. this.currentWindowHandle = handle;
  9. const page = this.getPageHandle();
  10. page.on('dialog', this.dialogHandler.bind(this));
  11. await page.bringToFront();
  12. return handle;
  13. }
  14. exports.default = switchToWindow;