Commit 779cf52 sopisoft
committed
1 parent 357a405 commit 779cf52 Copy full SHA for 779cf52
File tree 3 files changed +2
-8
lines changed
3 files changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -79,11 +79,6 @@ function Inputs() {
79
79
} ) ;
80
80
}
81
81
82
- useEffect ( ( ) => {
83
- const last_id = window . localStorage . getItem ( "videoId" ) ;
84
- setVideoId ( last_id ?? "" ) ;
85
- } , [ setVideoId ] ) ;
86
-
87
82
return (
88
83
< >
89
84
< TooltipProvider delayDuration = { 200 } >
Original file line number Diff line number Diff line change @@ -90,7 +90,7 @@ function Search() {
90
90
placeholder = "検索ワード"
91
91
className = "col-span-5"
92
92
type = "text"
93
- value = { word }
93
+ defaultValue = { word }
94
94
onChange = { ( e ) => {
95
95
setWord ( e . target . value ) ;
96
96
} }
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ import { createRoot } from "react-dom/client";
25
25
import browser from "webextension-polyfill" ;
26
26
import Inputs from "./components/inputs" ;
27
27
import Menu from "./components/menu" ;
28
- import Search from "./components/search " ;
28
+ import Search from "./components/search_input " ;
29
29
import { isWatchPage as isWatchPageFn } from "./utils" ;
30
30
31
31
export const VideoIdContext = createContext < {
@@ -42,7 +42,6 @@ export const Popup = () => {
42
42
43
43
function setVideoId ( video_id : string ) {
44
44
_setVideoId ( video_id ) ;
45
- window . localStorage . setItem ( "videoId" , video_id ) ;
46
45
}
47
46
48
47
isWatchPageFn ( ) . then ( setIsWatchPage ) ;
You can’t perform that action at this time.
0 commit comments