Skip to content

Commit cd7a06c

Browse files
authored
Merge pull request #5845 from bollwyvl/add-wasm-mime
Add wasm mimetype override
2 parents 57f8150 + c508af3 commit cd7a06c

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)