fix protocol issue in query string
This commit is contained in:
parent
8b6322d4cc
commit
43ffcc16b6
|
@ -94,7 +94,7 @@ const Search: React.FC<SearchProps> = ({ setBooks }) => {
|
|||
}
|
||||
|
||||
const copyToClipboard = () => {
|
||||
const searchBase = `${window.location.host}/?`;
|
||||
const searchBase = `${window.location.protocol}//${window.location.host}/?`;
|
||||
const searchQuery = encodeURIComponent(`title=${title}&author=${author}&language=${language}&publisher=${publisher}&isbn=${isbn}&extension=${extension}`)
|
||||
|
||||
navigator.clipboard.writeText(`${searchBase}${searchQuery}`).then(() => {
|
||||
|
|
Loading…
Reference in New Issue