mirror of
https://codeberg.org/ashley/poke.git
synced 2024-11-23 03:17:47 +01:00
format some code
This commit is contained in:
parent
ba14563c1a
commit
6e05c11292
1 changed files with 5 additions and 0 deletions
|
@ -69,6 +69,7 @@ module.exports = function (app, config, renderTemplate) {
|
||||||
if (req.query.continuation) {
|
if (req.query.continuation) {
|
||||||
var continuation = req.query.continuation;
|
var continuation = req.query.continuation;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!req.query.continuation) {
|
if (!req.query.continuation) {
|
||||||
var continuation = "";
|
var continuation = "";
|
||||||
}
|
}
|
||||||
|
@ -121,9 +122,11 @@ module.exports = function (app, config, renderTemplate) {
|
||||||
} catch {
|
} catch {
|
||||||
k = " ";
|
k = " ";
|
||||||
}
|
}
|
||||||
|
|
||||||
if (req.query.continuation) {
|
if (req.query.continuation) {
|
||||||
var continuation = req.query.continuation;
|
var continuation = req.query.continuation;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!req.query.continuation) {
|
if (!req.query.continuation) {
|
||||||
var continuation = "";
|
var continuation = "";
|
||||||
}
|
}
|
||||||
|
@ -156,11 +159,13 @@ module.exports = function (app, config, renderTemplate) {
|
||||||
const description = k.Channel.Contents.ItemSection.About.Description;
|
const description = k.Channel.Contents.ItemSection.About.Description;
|
||||||
|
|
||||||
var d = description.toString().replace(/\n/g, " <br> ");
|
var d = description.toString().replace(/\n/g, " <br> ");
|
||||||
|
|
||||||
if (d === "[object Object]") {
|
if (d === "[object Object]") {
|
||||||
var d = "";
|
var d = "";
|
||||||
}
|
}
|
||||||
|
|
||||||
var dnoreplace = description.toString();
|
var dnoreplace = description.toString();
|
||||||
|
|
||||||
if (dnoreplace === "[object Object]") {
|
if (dnoreplace === "[object Object]") {
|
||||||
var dnoreplace = "";
|
var dnoreplace = "";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue