debug
This commit is contained in:
parent
39f136c0a1
commit
de5434355b
|
@ -172,8 +172,11 @@ class App extends Component<RouteComponentProps, State> {
|
||||||
if (this.state.options.language === "English") {
|
if (this.state.options.language === "English") {
|
||||||
this.handleOptionsUpdate({ type: "toggleLanguage" });
|
this.handleOptionsUpdate({ type: "toggleLanguage" });
|
||||||
}
|
}
|
||||||
const parsedUrl = new URL(window.location as unknown as string);
|
const queryString = window.location.search;
|
||||||
const searchString = parsedUrl.searchParams.get("text") || "";
|
alert("query string is: " + queryString);
|
||||||
|
const urlParams = new URLSearchParams(queryString);
|
||||||
|
const searchString = urlParams.get("text") || "";
|
||||||
|
alert("text value us:" + searchString);
|
||||||
this.handleSearchValueChange(searchString);
|
this.handleSearchValueChange(searchString);
|
||||||
}
|
}
|
||||||
if (this.props.location.pathname === "/new-entries") {
|
if (this.props.location.pathname === "/new-entries") {
|
||||||
|
|
Loading…
Reference in New Issue