Skip to content

Commit 2ec37b1

Browse files
committed
DOWN
1 parent 5e80de4 commit 2ec37b1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

chat.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ function runchat(askGpt, app, oai) {
5353
fs.writeFile('images.json', JSON.stringify(orig), 'utf8', () => { console.log("Brainbase has been used"); });
5454
res.end((await r).data.data[0].url);
5555
});
56-
app.use('/down', (req, res) => {
56+
app.use('/checkdown', (req, res) => {
5757
res.end('1');
5858
});
5959
app.use('/chatbotresponse', async (req, res) => {

public/Public.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
async function name() {
22

3-
var down = await fetch('/checkdown');
3+
var down = await (await fetch('/checkdown')).text();
44
if(parseInt(down) == 1) window.localStorage.href='/down.html';
55

66
if(window.localStorage.authKey == null) {

0 commit comments

Comments
 (0)