tildefriends/apps/user_settings/app.js

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

25 lines
442 B
JavaScript
Raw Normal View History

2024-02-22 17:18:12 -05:00
async function main() {
// Get body.html
const body = utf8Decode(await getFile("body.html"));
// Build the document
const document = `
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="tildefriends.css"/>
<link rel="stylesheet" href="style.css"/>
<script src="script.js" type="module"></script>
</head>
<body>
${body}
</body>
</html>`;
// Send it to the browser
app.setDocument(document);
}
main();