aboutsummaryrefslogtreecommitdiff
path: root/src/console/hooks
diff options
context:
space:
mode:
authorShin'ya Ueoka <ueokande@i-beam.org>2021-07-04 13:29:42 +0900
committerShin'ya Ueoka <ueokande@i-beam.org>2021-07-04 13:29:42 +0900
commit6b88c15d1a6193cd090c5a1ae9b6ea06a467e171 (patch)
treee1b78080d8e10477007c9379b57a6213e6f72c6a /src/console/hooks
parent5904eeff1a75dcf83bcef7d5666a7473cc5b77de (diff)
yarn lint:fix
Diffstat (limited to 'src/console/hooks')
-rw-r--r--src/console/hooks/useAutoResize.ts6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/console/hooks/useAutoResize.ts b/src/console/hooks/useAutoResize.ts
index 4253606..26f1d76 100644
--- a/src/console/hooks/useAutoResize.ts
+++ b/src/console/hooks/useAutoResize.ts
@@ -10,10 +10,8 @@ const useAutoResize = () => {
}, []);
React.useLayoutEffect(() => {
- const {
- scrollWidth: width,
- scrollHeight: height,
- } = document.getElementById("vimvixen-console")!;
+ const { scrollWidth: width, scrollHeight: height } =
+ document.getElementById("vimvixen-console")!;
consoleFrameClient.resize(width, height);
if (width === prevWidth && height === prevHeight) {