Skip to content

Commit

Permalink
style: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
gotson committed Feb 20, 2024
1 parent 9ba2531 commit a1ba5ab
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
4 changes: 2 additions & 2 deletions src/navigator/IFrameNavigator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1708,8 +1708,8 @@ export class IFrameNavigator extends EventEmitter implements Navigator {
e instanceof Error
? e
: typeof e === "string"
? new Error(e)
: new Error("An unknown error occurred in the IFrameNavigator.");
? new Error(e)
: new Error("An unknown error occurred in the IFrameNavigator.");
this.api.onError(trueError);
} else {
// otherwise just display the standard error UI
Expand Down
22 changes: 11 additions & 11 deletions src/utils/KeyboardEventHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,17 +98,17 @@ export default class KeyboardEventHandler {
case "ArrowLeft":
self.rtl ? self.onForwardSwipe(event) : self.onBackwardSwipe(event);
return;
}
switch (event.code) {
case "Space":
if (event.ctrlKey) {
self.onBackwardSwipe(event);
return;
} else {
self.onForwardSwipe(event);
return;
}
}
}
switch (event.code) {
case "Space":
if (event.ctrlKey) {
self.onBackwardSwipe(event);
return;
} else {
self.onForwardSwipe(event);
return;
}
}
self.onKeydown(event);
})
);
Expand Down

0 comments on commit a1ba5ab

Please sign in to comment.