Skip to content

Commit 473315f

Browse files
committed
Editor: ServiceWorker clean up.
1 parent 8633560 commit 473315f

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

editor/sw.js

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
// r108
22

3-
const staticAssets = [
3+
const assets = [
44
'./',
55

66
'../files/favicon.ico',
77

88
'../build/three.js',
99

10-
'../examples/js/controls/EditorControls.js',
1110
'../examples/js/controls/TransformControls.js',
1211

1312
'../examples/js/libs/chevrotain.min.js',
@@ -42,6 +41,9 @@ const staticAssets = [
4241
'../examples/js/renderers/SoftwareRenderer.js',
4342
'../examples/js/renderers/SVGRenderer.js',
4443

44+
'./manifest.json',
45+
'./images/icon.png',
46+
4547
'./js/libs/codemirror/codemirror.css',
4648
'./js/libs/codemirror/theme/monokai.css',
4749

@@ -92,6 +94,7 @@ const staticAssets = [
9294
'./css/dark.css',
9395
'./css/light.css',
9496

97+
'./js/EditorControls.js',
9598
'./js/Storage.js',
9699

97100
'./js/Editor.js',
@@ -122,6 +125,7 @@ const staticAssets = [
122125
'./js/Sidebar.Geometry.BoxGeometry.js',
123126
'./js/Sidebar.Geometry.CircleGeometry.js',
124127
'./js/Sidebar.Geometry.CylinderGeometry.js',
128+
'./js/Sidebar.Geometry.DodecahedronGeometry.js',
125129
'./js/Sidebar.Geometry.ExtrudeGeometry.js',
126130
'./js/Sidebar.Geometry.IcosahedronGeometry.js',
127131
'./js/Sidebar.Geometry.OctahedronGeometry.js',
@@ -183,7 +187,7 @@ self.addEventListener( 'install', async function () {
183187

184188
const cache = await caches.open( 'threejs-editor' );
185189

186-
staticAssets.forEach( function ( asset ) {
190+
assets.forEach( function ( asset ) {
187191

188192
cache.add( asset ).catch( function () {
189193

0 commit comments

Comments
 (0)