Skip to content

Commit

Permalink
Merge pull request #23 from Semeikin-Kirill/refresh_branch
Browse files Browse the repository at this point in the history
[#7] correcting the form in Search
  • Loading branch information
fey authored Jun 29, 2022
2 parents 2933188 + 6eee12a commit b674307
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/Search.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ const Search = () => {
},
onSubmit: async (values) => {
try {
const response = await fetch(values.url);
const url = new URL(values.url);
const response = await fetch(url.href);
const htmlDoc = await response.text();
const tabData = {
tabData: { [activeTabId]: htmlDoc },
Expand Down

0 comments on commit b674307

Please sign in to comment.