Skip to content

Commit 974b74d

Browse files
committed
fixes
1 parent 4605a70 commit 974b74d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/MLB.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ const LAYOUT = "expanded";
2525
import Cache from './lib/cache';
2626
import Updater from './lib/updater';
2727

28-
const scriptVersion = 3;
28+
const scriptVersion = 4;
2929
const sourceRepo = "evandcoleman/scriptable";
3030
const scriptName = "MLB";
3131

@@ -145,7 +145,9 @@ async function createExpandedWidget() {
145145
outsStack.layoutHorizontally();
146146
const outImages = getOutsImages(game);
147147
for (let index in outImages) {
148-
outsStack.addSpacer(index == 0 ? null : index === 2 ? 0 : 12);
148+
if (index > 0) {
149+
outsStack.addSpacer(index == 0 ? null : index === 2 ? 0 : 12);
150+
}
149151
const widgetImage = outsStack.addImage(outImages[index]);
150152
widgetImage.imageSize = new Size(6, 6);
151153
}

0 commit comments

Comments
 (0)