mirror of
https://github.com/jupyter/notebook.git
synced 2025-04-12 14:00:27 +08:00
Load promises polyfill from a script tag
So all JS code can assume promises work, without needing to require it.
This commit is contained in:
parent
d3699c8e3b
commit
8c962df79c
@ -5,7 +5,6 @@ define([
|
||||
'base/js/namespace',
|
||||
'jquery',
|
||||
'codemirror/lib/codemirror',
|
||||
'es6promise',
|
||||
], function(IPython, $, CodeMirror){
|
||||
"use strict";
|
||||
|
||||
|
@ -14,6 +14,7 @@
|
||||
<link rel="stylesheet" href="{{ static_url("style/style.min.css") }}" type="text/css"/>
|
||||
{% endblock %}
|
||||
<link rel="stylesheet" href="{{ static_url("custom/custom.css") }}" type="text/css" />
|
||||
<script src="{{static_url("components/es6-promise/promise.min.js")}}" type="text/javascript" charset="utf-8"></script>
|
||||
<script src="{{static_url("components/requirejs/require.js") }}" type="text/javascript" charset="utf-8"></script>
|
||||
<script>
|
||||
require.config({
|
||||
@ -30,7 +31,6 @@
|
||||
moment: "components/moment/moment",
|
||||
codemirror: 'components/codemirror',
|
||||
termjs: "components/term.js/src/term",
|
||||
es6promise: 'components/es6-promise/promise.min',
|
||||
contents: '{{ contents_js_source }}',
|
||||
},
|
||||
shim: {
|
||||
|
Loading…
x
Reference in New Issue
Block a user