blob: b092c489096dd9ed3824efa413fbba2657148773 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
import Operator from "../Operator";
import TabPresenter from "../../presenters/TabPresenter";
import NavigateClient from "../../clients/NavigateClient";
export default class NavigateHistoryNextOperator implements Operator {
constructor(
private readonly tabPresenter: TabPresenter,
private readonly navigateClient: NavigateClient
) {}
async run(): Promise<void> {
const tab = await this.tabPresenter.getCurrent();
await this.navigateClient.historyNext(tab.id!);
}
}
|