Skip to content

Commit 4c4314a

Browse files
committed
Add the custom CSS handler is self.custom_css is set
1 parent 48ad631 commit 4c4314a

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
@@ -340,7 +340,8 @@ def initialize_handlers(self) -> None:
340340
self.handlers.append(("/edit(.*)", FileHandler))
341341
self.handlers.append(("/consoles/(.*)", ConsoleHandler))
342342
self.handlers.append(("/terminals/(.*)", TerminalHandler))
343-
self.handlers.append(("/custom/custom.css", CustomCssHandler))
343+
if self.custom_css:
344+
self.handlers.append(("/custom/custom.css", CustomCssHandler))
344345
super().initialize_handlers()
345346

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

0 commit comments

Comments
 (0)