Pārlūkot izejas kodu

Let's not confuse newcomers with DOMContentLoaded for now

Kevin van Zonneveld 9 gadi atpakaļ
vecāks
revīzija
2b50e68144
1 mainītis faili ar 4 papildinājumiem un 8 dzēšanām
  1. 4 8
      website/src/examples/cdn/app.html

+ 4 - 8
website/src/examples/cdn/app.html

@@ -1,13 +1,9 @@
 <link rel="stylesheet" href="/css/uppy.css">
 <link rel="stylesheet" href="/css/uppy.css">
 
 
+<script src="/js/uppy.js"></script>
 <script>
 <script>
-document.addEventListener('DOMContentLoaded', function(event) {
-  var uppy = new Uppy.Core();
-  uppy.use(Uppy.plugins.Tus10);
+var uppy = new Uppy.Core();
+uppy.use(Uppy.plugins.Tus10);
 
 
-  console.log(uppy.type);
-  console.log('Uppy loaded from CDN with a tus 1.0 plugin');
-});
+console.log('Uppy ' + uppy.type + ' loaded from CDN with tus enabled');
 </script>
 </script>
-
-<script src="/js/uppy.js"></script>