mirror of
https://codeberg.org/ashley/poke.git
synced 2024-12-01 04:37:18 +01:00
add a fix for searches
This commit is contained in:
parent
40c549b2d0
commit
47096ec018
1 changed files with 5 additions and 3 deletions
|
@ -91,11 +91,13 @@ module.exports = function (app, config, renderTemplate) {
|
||||||
|
|
||||||
h = " ";
|
h = " ";
|
||||||
|
|
||||||
if (j.Search.Results.DynamicItem) {
|
if (j.Search) {
|
||||||
|
if ("Results.DynamicItem" in j.Search) {
|
||||||
if (j.Search.Results.DynamicItem.id == "didYouMeanRenderer") {
|
if (j.Search.Results.DynamicItem.id == "didYouMeanRenderer") {
|
||||||
var h = JSON.parse(j.Search.Results.DynamicItem.Title);
|
var h = JSON.parse(j.Search.Results.DynamicItem.Title);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
const summary = await wiki
|
const summary = await wiki
|
||||||
.summary(query + " ")
|
.summary(query + " ")
|
||||||
|
|
Loading…
Reference in a new issue