Skip to content

Commit

Permalink
Add the custom CSS handler is self.custom_css is set
Browse files Browse the repository at this point in the history
  • Loading branch information
jtpio committed Oct 24, 2024
1 parent 2a8e579 commit ca2ce8d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion notebook/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,8 @@ def initialize_handlers(self) -> None:
self.handlers.append(("/edit(.*)", FileHandler))
self.handlers.append(("/consoles/(.*)", ConsoleHandler))
self.handlers.append(("/terminals/(.*)", TerminalHandler))
self.handlers.append(("/custom/custom.css", CustomCssHandler))
if self.custom_css:
self.handlers.append(("/custom/custom.css", CustomCssHandler))
super().initialize_handlers()

def initialize(self, argv: list[str] | None = None) -> None: # noqa: ARG002
Expand Down

0 comments on commit ca2ce8d

Please sign in to comment.