|
1 | 1 | // r108 |
2 | 2 |
|
3 | | -const staticAssets = [ |
| 3 | +const assets = [ |
4 | 4 | './', |
5 | 5 |
|
6 | 6 | '../files/favicon.ico', |
7 | 7 |
|
8 | 8 | '../build/three.js', |
9 | 9 |
|
10 | | - '../examples/js/controls/EditorControls.js', |
11 | 10 | '../examples/js/controls/TransformControls.js', |
12 | 11 |
|
13 | 12 | '../examples/js/libs/chevrotain.min.js', |
@@ -42,6 +41,9 @@ const staticAssets = [ |
42 | 41 | '../examples/js/renderers/SoftwareRenderer.js', |
43 | 42 | '../examples/js/renderers/SVGRenderer.js', |
44 | 43 |
|
| 44 | + './manifest.json', |
| 45 | + './images/icon.png', |
| 46 | + |
45 | 47 | './js/libs/codemirror/codemirror.css', |
46 | 48 | './js/libs/codemirror/theme/monokai.css', |
47 | 49 |
|
@@ -92,6 +94,7 @@ const staticAssets = [ |
92 | 94 | './css/dark.css', |
93 | 95 | './css/light.css', |
94 | 96 |
|
| 97 | + './js/EditorControls.js', |
95 | 98 | './js/Storage.js', |
96 | 99 |
|
97 | 100 | './js/Editor.js', |
@@ -122,6 +125,7 @@ const staticAssets = [ |
122 | 125 | './js/Sidebar.Geometry.BoxGeometry.js', |
123 | 126 | './js/Sidebar.Geometry.CircleGeometry.js', |
124 | 127 | './js/Sidebar.Geometry.CylinderGeometry.js', |
| 128 | + './js/Sidebar.Geometry.DodecahedronGeometry.js', |
125 | 129 | './js/Sidebar.Geometry.ExtrudeGeometry.js', |
126 | 130 | './js/Sidebar.Geometry.IcosahedronGeometry.js', |
127 | 131 | './js/Sidebar.Geometry.OctahedronGeometry.js', |
@@ -183,7 +187,7 @@ self.addEventListener( 'install', async function () { |
183 | 187 |
|
184 | 188 | const cache = await caches.open( 'threejs-editor' ); |
185 | 189 |
|
186 | | - staticAssets.forEach( function ( asset ) { |
| 190 | + assets.forEach( function ( asset ) { |
187 | 191 |
|
188 | 192 | cache.add( asset ).catch( function () { |
189 | 193 |
|
|
0 commit comments