This commit is contained in:
retoor 2025-09-17 16:09:48 +02:00
parent 70d3b3b019
commit 659c30f376
3 changed files with 5 additions and 2 deletions

View File

@ -42,6 +42,7 @@ from snek.system.template import (
PythonExtension,
sanitize_html,
)
from snek.view.new import NewView
from snek.view.about import AboutHTMLView, AboutMDView
from snek.view.avatar import AvatarView
from snek.view.channel import ChannelAttachmentView,ChannelAttachmentUploadView, ChannelView
@ -272,6 +273,8 @@ class Application(BaseApplication):
name="static",
show_index=True,
)
self.router.add_view("/new.html", NewView)
self.router.add_view("/profiler.html", profiler_handler)
self.router.add_view("/container/sock/{channel_uid}.json", ContainerView)
self.router.add_view("/about.html", AboutHTMLView)

View File

@ -394,7 +394,7 @@ textToLeetAdvanced(text) {
}
j++;
}
return i === s.length;
return i === s.length && s.length > 1;
}
flagTyping() {

View File

@ -52,7 +52,7 @@ self.addEventListener("push", async (event) => {
data,
}).then(e => console.log("Showing notification", e)).catch(console.error);
event.waitUntil(reg);
// event.waitUntil(reg);
});