Skip to content

Commit 3f632d3

Browse files
authored
SW: Add secure headers and clean up (#24217)
* SW: Add secure headers and clean up * Fix * Update sw.js * Fix for unpkg * Fix cross-origin * Fix * COEP: credentialless * Host libs locally
1 parent 56fb2f7 commit 3f632d3

File tree

4 files changed

+827
-21
lines changed

4 files changed

+827
-21
lines changed

editor/index.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@
1212
<body>
1313
<link rel="stylesheet" href="css/main.css">
1414

15-
<script src="https://unpkg.com/@ffmpeg/[email protected]/dist/ffmpeg.min.js" defer></script>
16-
1715
<script src="../examples/js/libs/draco/draco_encoder.js"></script>
1816

1917
<link rel="stylesheet" href="js/libs/codemirror/codemirror.css">
@@ -25,6 +23,8 @@
2523
<script src="js/libs/esprima.js"></script>
2624
<script src="js/libs/jsonlint.js"></script>
2725

26+
<script src="js/libs/ffmpeg.min.js" defer></script>
27+
2828
<link rel="stylesheet" href="js/libs/codemirror/addon/dialog.css">
2929
<link rel="stylesheet" href="js/libs/codemirror/addon/show-hint.css">
3030
<link rel="stylesheet" href="js/libs/codemirror/addon/tern.css">
@@ -47,7 +47,7 @@
4747

4848
<!-- Import maps polyfill -->
4949
<!-- Remove this when import maps will be widely supported -->
50-
<script async src="https://unpkg.com/[email protected]/dist/es-module-shims.js"></script>
50+
<script async src="js/libs/es-module-shims.js"></script>
5151

5252
<script type="importmap">
5353
{

editor/js/libs/es-module-shims.js

Lines changed: 789 additions & 0 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)