This commit is contained in:
jelveh
2025-08-03 18:24:02 -07:00
committed by Nariman Jelveh
parent bb7bb532ab
commit 615de5ec11
2 changed files with 9 additions and 1 deletions
+3
View File
@@ -511,6 +511,9 @@ label {
padding: 10px 20px;
cursor: pointer;
margin-bottom: 10px;
margin-left: 10px;
margin-right: 10px;
border-radius: 7px;
}
.sidebar-nav>li:hover {
+6 -1
View File
@@ -4,7 +4,12 @@ window.websites = [];
let search_query;
window.create_website = async (name) => {
let website = await puter.hosting.create(name, window.default_website_file);
let website
try {
website = await puter.hosting.create(name, window.default_website_file);
} catch (error) {
puter.ui.alert(`Error creating website: ${error.error.message}`);
}
return website;
}