Skip to content

Commit

Permalink
fix: use user's zoom level when resetting (#160)
Browse files Browse the repository at this point in the history
If the user has a non-default zoom level configured, we should use it
when resetting the zoom level
  • Loading branch information
Delerme authored Jun 11, 2023
1 parent 3498424 commit 2b15137
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/background/operators/impls/ZoomResetOperator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ export default class ResetZoomOperator implements Operator {
schema() {}

async run(): Promise<void> {
return chrome.tabs.setZoom(1);
return chrome.tabs.setZoom(0);
}
}
2 changes: 1 addition & 1 deletion test/background/operators/impls/ZoomResetOperator.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ describe("ResetZoomOperator", () => {
const sut = new ZoomResetOperator();
await sut.run();

expect(mockSetZoom).toBeCalledWith(1);
expect(mockSetZoom).toBeCalledWith(0);
});
});
});

0 comments on commit 2b15137

Please # to comment.