mirror of
https://api.glitch.com/git/presence-button
synced 2024-11-05 08:27:29 +00:00
😼🎁 Checkpoint
./server.js:933874/26929 ./views/index.html:933874/4193
This commit is contained in:
parent
c94c74a13a
commit
b4b29bedfc
@ -9,7 +9,7 @@ var lastClosed = new Date("1970-01-01");
|
||||
|
||||
const fs = require("fs");
|
||||
const db = "./.data/data.json";
|
||||
const closingTimeout = 5 * 60 * 1000; // 5 mins
|
||||
const defaultClosingTimeout = 5 * 60 * 1000; // 5 mins
|
||||
|
||||
try {
|
||||
var content = fs.readFileSync(db, "utf8");
|
||||
@ -41,6 +41,7 @@ app.get("/", (req, res) => {
|
||||
});
|
||||
|
||||
app.get("/img", (req, res) => {
|
||||
const closingTimeout = (typeof req.query.closingTimeout !== 'undefined')? req.query.closingTimeout : defaultClosingTimeout;
|
||||
res.header(
|
||||
"Cache-Control",
|
||||
"no-store, no-cache, must-revalidate, proxy-revalidate"
|
||||
|
@ -55,11 +55,7 @@
|
||||
</p>
|
||||
</main>
|
||||
|
||||
<footer>
|
||||
Made with <a href="https://glitch.com">Glitch</a>! Icons made by
|
||||
<a href="https://www.flaticon.com/authors/smashicons">Smashicons</a> from
|
||||
<a href="https://www.flaticon.com/">www.flaticon.com</a>
|
||||
</footer>
|
||||
<footer>Made with <a href="https://glitch.com">Glitch</a>!</footer>
|
||||
|
||||
<!-- include the Glitch button to show what the webpage is about and
|
||||
to make it easier for folks to view source and remix -->
|
||||
|
Loading…
Reference in New Issue
Block a user