File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -42,13 +42,13 @@ export default class GraphManager {
42
42
// classInfo is optional
43
43
}
44
44
try {
45
- let manifestResponse : any = { }
46
45
try {
47
- manifestResponse = await axios . get ( manifestUrl )
46
+ let manifestResponse = await axios . get ( manifestUrl )
47
+ this . componentSet = manifestResponse . data as ComponentSet ;
48
48
} catch {
49
- manifestResponse = await axios . get ( gzippedManifestUrl , { responseType : 'arraybuffer' , 'decompress' : true } )
49
+ let manifestResponse = await axios . get ( gzippedManifestUrl , { responseType : 'arraybuffer' , 'decompress' : true } )
50
+ this . componentSet = JSON . parse ( pako . inflate ( manifestResponse . data , { to : 'string' } ) ) as ComponentSet ;
50
51
}
51
- this . componentSet = JSON . parse ( pako . inflate ( manifestResponse . data , { to : 'string' } ) ) as ComponentSet ;
52
52
this . populateCaches ( ) ;
53
53
} catch {
54
54
return false ;
You can’t perform that action at this time.
0 commit comments