@@ -134,6 +134,7 @@ export default {
134
134
Curiosity: ' Curiosity' ,
135
135
Spirit: ' Spirit' ,
136
136
Opportunity: ' Opportunity' ,
137
+ Perseverance: ' Perseverance' ,
137
138
},
138
139
}).on (' change' , (rover ) => {
139
140
@@ -277,7 +278,7 @@ export default {
277
278
getManifest () {
278
279
279
280
// set rover for API call
280
- const regexRovers = / SETROVER| curiosity| spirit| opportunity/ gi ;
281
+ const regexRovers = / SETROVER| curiosity| spirit| opportunity| perseverance / gi ;
281
282
282
283
this .manifestUrl = this .manifestUrl .replace (regexRovers, this .rover .toLowerCase ())
283
284
@@ -297,8 +298,12 @@ export default {
297
298
if (document .getElementById (" picture" ).classList .contains (" wholeBlack" )) document .getElementById (" picture" ).classList .remove (" wholeBlack" )
298
299
299
300
// set rover and camera for manifest api call
300
- const regexRovers = / SETROVER| curiosity| spirit| opportunity/ gi ;
301
+ const regexRovers = / SETROVER| curiosity| spirit| opportunity| perseverance / gi ;
301
302
this .manifestUrl = this .manifestUrl .replace (regexRovers, this .rover .toLowerCase ())
303
+
304
+ // set camera if rover is Perseverance
305
+ if (this .rover == " Perseverance" ) this .cam = " NAVCAM_RIGHT" ;
306
+ else this .cam = " NAVCAM" ;
302
307
303
308
var vm = this ;
304
309
@@ -378,7 +383,7 @@ export default {
378
383
379
384
380
385
// set rover and camera for manifest api call
381
- const regexRovers = / SETROVER| curiosity| spirit| opportunity/ gi ;
386
+ const regexRovers = / SETROVER| curiosity| spirit| opportunity| perseverance / gi ;
382
387
this .manifestUrl = this .manifestUrl .replace (regexRovers, this .rover .toLowerCase ())
383
388
384
389
var vm = this ;
@@ -482,7 +487,6 @@ export default {
482
487
this .initPanelPicture ()
483
488
484
489
this .getRandomPic ()
485
-
486
490
487
491
}
488
492
0 commit comments