Skip to content

Commit ca2ce8d

Browse files
committed
Add the custom CSS handler is self.custom_css is set
1 parent 2a8e579 commit ca2ce8d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

notebook/app.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,8 @@ def initialize_handlers(self) -> None:
354354
self.handlers.append(("/edit(.*)", FileHandler))
355355
self.handlers.append(("/consoles/(.*)", ConsoleHandler))
356356
self.handlers.append(("/terminals/(.*)", TerminalHandler))
357-
self.handlers.append(("/custom/custom.css", CustomCssHandler))
357+
if self.custom_css:
358+
self.handlers.append(("/custom/custom.css", CustomCssHandler))
358359
super().initialize_handlers()
359360

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

0 commit comments

Comments
 (0)