Skip to content

Commit c508af3

Browse files
committed
add wasm mimetype
1 parent 7221718 commit c508af3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

notebook/notebookapp.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2000,6 +2000,8 @@ def init_mime_overrides(self):
20002000
# ensure css, js are correct, which are required for pages to function
20012001
mimetypes.add_type('text/css', '.css')
20022002
mimetypes.add_type('application/javascript', '.js')
2003+
# for python <3.8
2004+
mimetypes.add_type('application/wasm', '.wasm')
20032005

20042006
def shutdown_no_activity(self):
20052007
"""Shutdown server on timeout when there are no kernels or terminals."""

0 commit comments

Comments
 (0)