tildefriends/apps/user_settings/app.js

25 lines
442 B
JavaScript

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();