-
Notifications
You must be signed in to change notification settings - Fork 0
/
sw.js
155 lines (152 loc) · 4.92 KB
/
sw.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
var CACHE = 'MicrobeTraceD2019-09-13R8636';
self.addEventListener('install', function(event) {
event.waitUntil(
caches.open(CACHE).then(function(cache) {
return cache.addAll([
'/',
'index.html',
'package.json',
'manifest.json',
'favicon.ico',
'humans.txt',
'LICENSE',
'vendor/bioseq.min.js',
'vendor/papaparse.min.js',
'vendor/patristic.min.js',
'vendor/README.md',
'vendor/tn93.min.js',
'dist/bundle.primary.css',
'dist/bundle.primary.js',
'dist/bundle.secondary.css',
'dist/bundle.secondary.js',
'dist/common.js',
'dist/index.js',
'dist/main.css',
'workers/align-sw.js',
'workers/compute-ambiguity-counts.js',
'workers/compute-consensus-distances.js',
'workers/compute-consensus.js',
'workers/compute-directionality.js',
'workers/compute-links.js',
'workers/compute-nn.js',
'workers/compute-patristic-matrix.js',
'workers/compute-tree.js',
'workers/compute-triangulation.js',
'workers/parse-csv-matrix.js',
'workers/parse-fasta.js',
'workers/README.md',
'components/2d_network.html',
'components/3d_network.html',
'components/aggregation.html',
'components/bubbles.html',
'components/choropleth.html',
'components/crosstab.html',
'components/files.html',
'components/flow_diagram.html',
'components/gantt.html',
'components/geo_map.html',
'components/globe.html',
'components/heatmap.html',
'components/help.html',
'components/histogram.html',
'components/phylogenetic_tree.html',
'components/physics_tree.html',
'components/scatterplot.html',
'components/sequences.html',
'components/table.html',
'components/timeline.html',
'components/waterfall.html',
'fonts/open-iconic.eot',
'fonts/open-iconic.otf',
'fonts/open-iconic.svg',
'fonts/open-iconic.ttf',
'fonts/open-iconic.woff',
'img/android-chrome-192x192.png',
'img/android-chrome-512x512.png',
'img/apple-touch-icon.png',
'img/browserconfig.xml',
'img/favicon-16x16.png',
'img/favicon-32x32.png',
'img/favicon-48x48.png',
'img/humanstxt-isolated-blank.gif',
'img/Molecule.svg',
'img/mstile-144x144.png',
'img/mstile-150x150.png',
'img/mstile-310x150.png',
'img/mstile-310x310.png',
'img/mstile-70x70.png',
'img/safari-pinned-tab.svg',
'data/counties.json',
'data/countries.json',
'data/land.json',
'data/stars.json',
'data/states.json',
'data/tracts.csv',
'data/zipcodes.csv',
'help/3D-Network.md',
'help/Acknowledgements.md',
'help/Aggregation.md',
'help/Alignment.md',
'help/Browser-Compatibility.md',
'help/Bubbles.md',
'help/Console-API.md',
'help/Contributing.md',
'help/Demo:-Tree-of-Life.md',
'help/Demo:-Working-With-Microreact.md',
'help/Distance-Matrices.md',
'help/Distance-Metrics.md',
'help/Edge-CSVs.md',
'help/FASTA-Files.md',
'help/Flow-Diagram.md',
'help/_Footer.md',
'help/Geospatial-Data.md',
'help/Heatmap.md',
'help/Histogram.md',
'help/Home.md',
'help/Inputs.md',
'help/Installation.md',
'help/Internet-Explorer.md',
'help/Loading-Files.md',
'help/Map.md',
'help/MicrobeTrace-and-its-Alternatives.md',
'help/Network-View.md',
'help/Node-CSVs.md',
'help/Offline.md',
'help/References.md',
'help/Scatterplot.md',
'help/Searching.md',
'help/Security.md',
'help/Sequences.md',
'help/SNPs.md',
'help/Style-Files.md',
'help/Suspicious-Network-Topologies.md',
'help/SVGs.md',
'help/System-Requirements.md',
'help/Table.md',
'help/Theory.md',
'help/Tile-Maps.md',
'help/Troubleshooting---Caching.md',
'help/Troubleshooting.md',
'help/z-API.md',
'help/z-Assimilating-MicrobeTrace.md',
'help/z-Create-a-New-View.md',
'help/z-Deployment.md',
'help/z-Development.md',
'help/z-Nomenclature.md',
'help/z-Optimization.md',
'help/z-Roadmap.md',
'help/z-Security-Considerations.md',
'help/z-What-We-Should-Have-Done.md',
]);
})
);
});
self.addEventListener('fetch', function(evt){
evt.respondWith(fetch(evt.request).catch(function(){
return caches.open(CACHE).then(function(cache){
return cache.match(evt.request).then(function(matching){
return matching || Promise.reject('No Match for ', evt.request, 'in Service Worker Cache!');
});
});
}));
});