fix: use inputValue
This commit is contained in:
parent
2c93feb022
commit
77c5473bd7
|
@ -135,7 +135,7 @@ export function Navigator() {
|
||||||
const [inputValue, setInputValue] = useState(contextUrl); // Local state for the input value
|
const [inputValue, setInputValue] = useState(contextUrl); // Local state for the input value
|
||||||
|
|
||||||
const browse = useCallback(() => {
|
const browse = useCallback(() => {
|
||||||
let input = contextUrl.trim();
|
let input = inputValue.trim();
|
||||||
|
|
||||||
// If the input doesn't contain a protocol, assume it's http
|
// If the input doesn't contain a protocol, assume it's http
|
||||||
if (!input?.match(/^https?:\/\//)) {
|
if (!input?.match(/^https?:\/\//)) {
|
||||||
|
|
Loading…
Reference in New Issue