aboutsummaryrefslogtreecommitdiff
path: root/src/console/hooks/useAutoResize.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/console/hooks/useAutoResize.ts')
-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) {