Skip to content

Commit 590f8ff

Browse files
committed
Fix crash
1 parent e893868 commit 590f8ff

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@ repomix-output.xml
77
generate-context.ps1
88
.env
99
languages/backup/
10+
css_transition/src/

src/components/Navbar/index.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
2121
*/
2222
import { Fragment, h } from "preact"
23-
import { useState, useEffect, useRef } from "preact/hooks"
23+
import { useState, useRef } from "preact/hooks"
2424
import { iconsFeather } from "../Images"
2525
import { iconsTarget, AppLogo } from "../../targets"
2626
import { Link } from "../Router"
@@ -134,10 +134,6 @@ const Navbar = () => {
134134
menuLinks.push(...extraPages)
135135
}
136136
}
137-
useEffect(() => {
138-
new ResizeObserver(onResize).observe(document.getElementById("app"))
139-
}, [])
140-
141137
const onDisconnect = () => {
142138
useUiContextFn.haptic()
143139
showConfirmationModal({

0 commit comments

Comments
 (0)