Skip to content

Commit

Permalink
FIX
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewstech committed Jul 10, 2023
1 parent 198ee72 commit 737cf43
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 4 additions & 3 deletions components/web/listDomains.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
function ListDomains(username) {
async function ListDomains(username) {
let results = [];
fetch("https://raw-api.is-a.dev")
await fetch("https://raw-api.is-a.dev")
.then((response) => response.json())
.then(async (data) => {

Expand All @@ -13,4 +13,5 @@ function ListDomains(username) {
}
});
return results;
}
}
exports.ListDomains = ListDomains;
2 changes: 2 additions & 0 deletions testweb.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
const keepAlive = require("./components/webserver.js");
keepAlive();

0 comments on commit 737cf43

Please sign in to comment.