mirror of
https://github.com/danbulant/Mangades
synced 2026-07-06 19:40:54 +00:00
sync title to query
This commit is contained in:
parent
8ea35930ab
commit
a9a5779e92
1 changed files with 7 additions and 1 deletions
|
|
@ -1,6 +1,12 @@
|
||||||
<script>
|
<script>
|
||||||
import request from "../util/request";
|
import request from "../util/request";
|
||||||
var name = "";
|
import { params } from '@roxi/routify'
|
||||||
|
var name = $params.search;
|
||||||
|
$: {
|
||||||
|
const url = new URL(window.location.toString());
|
||||||
|
url.searchParams.set("search", name);
|
||||||
|
history.replaceState(history.state, "", url.toString());
|
||||||
|
}
|
||||||
var result = request("manga", "title=" + name + "&contentRating[]=safe&contentRating[]=suggestive");
|
var result = request("manga", "title=" + name + "&contentRating[]=safe&contentRating[]=suggestive");
|
||||||
$: result = request("manga", "title=" + name + "&contentRating[]=safe&contentRating[]=suggestive");
|
$: result = request("manga", "title=" + name + "&contentRating[]=safe&contentRating[]=suggestive");
|
||||||
result.then(console.log);
|
result.then(console.log);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue