mirror of
https://github.com/misenhower/splatoon2.ink.git
synced 2026-09-11 03:55:20 -05:00
Fix issues with test Splatfest image generation
This is a bit hacky but it works for now.
This commit is contained in:
@@ -57,8 +57,10 @@ class SplatfestTweet extends TwitterPostBase {
|
||||
}
|
||||
|
||||
// Which regions have this Splatfest?
|
||||
regions() {
|
||||
let festival = this.getData();
|
||||
regions(festival = null) {
|
||||
if (!festival)
|
||||
festival = this.getData();
|
||||
|
||||
if (!festival)
|
||||
return false;
|
||||
|
||||
@@ -84,7 +86,7 @@ class SplatfestTweet extends TwitterPostBase {
|
||||
}
|
||||
|
||||
getImage(data) {
|
||||
return captureSplatfestScreenshot(this.region, data.festival.times[data.type], this.regions());
|
||||
return captureSplatfestScreenshot(this.region, data.festival.times[data.type], this.regions(data));
|
||||
}
|
||||
|
||||
getText(data) {
|
||||
|
||||
Reference in New Issue
Block a user