Browse Source

Move the polyfill to script tags

Steven Silvester 9 years ago
parent
commit
2884ccd11c

+ 3 - 3
examples/console/index.html

@@ -1,10 +1,10 @@
 <!doctype html>
 <html lang="en">
   <head>
-    <title>Notebook Demo</title>
-    <script type="text/javascript" src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS_CHTML-full,Safe&amp;delayStartupUntil=configured"></script>
+    <title>FileBrowser Demo</title>
     <link href="http://maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet">
-    <link rel="stylesheet" type="text/css" href="index.css">
+    <script type="text/javascript" src="https://www.promisejs.org/polyfills/promise-6.1.0.js"></script>
+    <link href="index.css" rel="stylesheet">
   </head>
   <body>
     <script id='jupyter-config-data' type="application/json">{ "baseUrl": "{{base_url}}" }</script>

+ 0 - 3
examples/console/src/index.ts

@@ -44,9 +44,6 @@ import {
   Widget
 } from 'phosphor-widget';
 
-// ES6 Promise polyfill
-require('es6-promise').polyfill();
-
 import 'jupyter-js-notebook/lib/index.css';
 import 'jupyter-js-notebook/lib/theme.css';
 import 'jupyter-js-ui/lib/dialog/index.css';

+ 3 - 3
examples/notebook/index.html

@@ -1,10 +1,10 @@
 <!doctype html>
 <html lang="en">
   <head>
-    <title>Notebook Demo</title>
-    <script type="text/javascript" src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS_CHTML-full,Safe&amp;delayStartupUntil=configured"></script>
+    <title>FileBrowser Demo</title>
     <link href="http://maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet">
-    <link rel="stylesheet" type="text/css" href="index.css">
+    <script type="text/javascript" src="https://www.promisejs.org/polyfills/promise-6.1.0.js"></script>
+    <link href="index.css" rel="stylesheet">
   </head>
   <body>
     <script id='jupyter-config-data' type="application/json">{ "baseUrl": "{{base_url}}" }</script>

+ 0 - 3
examples/notebook/src/index.ts

@@ -44,9 +44,6 @@ import {
   Widget
 } from 'phosphor-widget';
 
-// ES6 Promise polyfill
-require('es6-promise').polyfill();
-
 import 'jupyter-js-notebook/lib/index.css';
 import 'jupyter-js-notebook/lib/theme.css';
 import 'jupyter-js-ui/lib/dialog/index.css';

+ 0 - 1
examples/package.json

@@ -2,7 +2,6 @@
   "private": true,
   "name": "jupyter-js-notebook-examples",
   "dependencies": {
-    "es6-promise": "^3.1.2",
     "jupyter-js-notebook": "file:..",
     "phosphor-commandpalette": "^0.2.0",
     "phosphor-keymap": "^0.8.0",