Skip to content

Commit 0b12e6d

Browse files
committed
Improve Reflect share
1 parent c2b27a7 commit 0b12e6d

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

reflect-staging.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -461,13 +461,13 @@ function addCloseButton(scene) {
461461
async function shareReflect(streak) {
462462
const shareData = {
463463
title: 'Reflect',
464-
text: `I solved today's Reflect puzzle! Current streak: ${streak}`,
464+
text: `I solved today's Reflect puzzle!`,
465465
url: 'https://tom-e-white.com/reflect/',
466466
};
467467
if (navigator.canShare) {
468468
try {
469-
const blob = await fetch('logo.png').then(r => r.blob());
470-
const file = new File([blob], 'logo.png', { type: 'image/png' });
469+
const blob = await fetch('favicon/favicon-32x32.png').then(r => r.blob());
470+
const file = new File([blob], 'reflect.png', { type: 'image/png' });
471471
if (navigator.canShare({ files: [file] })) {
472472
shareData.files = [file];
473473
}
@@ -679,7 +679,7 @@ class PlayScene extends PhaserScene {
679679
showWinState();
680680
plausible("solved");
681681
saveEvent("solved");
682-
if (today.endsWith("-01")) { // show on 1st of every month
682+
if (today.endsWith("-30")) { // show on 1st of every month
683683
this.scene.launch('ShareScene', { streak: getStats().currentStreak });
684684
}
685685
}

0 commit comments

Comments
 (0)