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 Feb 2, 2024
1 parent 48ad631 commit 4c4314a
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 @@ -340,7 +340,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 4c4314a

Please sign in to comment.