From ebaa23a027783156965273cb7d9bbcdbd0d7c586 Mon Sep 17 00:00:00 2001 From: Min RK Date: Fri, 25 Mar 2016 09:30:24 +0100 Subject: [PATCH] Backport PR #1143: Exempt javascript files from files check Closes #1040. External JS files are loaded with `application/javascript` mimetype. cc: @Carreau @michaelsbradleyjr --- notebook/static/tree/js/notebooklist.js | 1 + 1 file changed, 1 insertion(+) diff --git a/notebook/static/tree/js/notebooklist.js b/notebook/static/tree/js/notebooklist.js index 4cf108d01..ba5ca31f4 100644 --- a/notebook/static/tree/js/notebooklist.js +++ b/notebook/static/tree/js/notebooklist.js @@ -555,6 +555,7 @@ define([ var uri_prefix = NotebookList.uri_prefixes[model.type]; if (model.type === 'file' && model.mimetype && model.mimetype.substr(0,5) !== 'text/' + && !model.mimetype.endsWith('javascript') ) { // send text/unidentified files to editor, others go to raw viewer uri_prefix = 'files';