Skip to content

Commit

Permalink
miauthでは寄付popupを表示しない (#10779)
Browse files Browse the repository at this point in the history
  • Loading branch information
kakkokari-gtyih authored May 6, 2023
1 parent 8c4e918 commit 39becdb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/frontend/src/init.ts
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,7 @@ if ($i) {

const latestDonationInfoShownAt = miLocalStorage.getItem('latestDonationInfoShownAt');
const neverShowDonationInfo = miLocalStorage.getItem('neverShowDonationInfo');
if (neverShowDonationInfo !== 'true' && (new Date($i.createdAt).getTime() < (Date.now() - (1000 * 60 * 60 * 24 * 3)))) {
if (neverShowDonationInfo !== 'true' && (new Date($i.createdAt).getTime() < (Date.now() - (1000 * 60 * 60 * 24 * 3))) && !location.pathname.startsWith("/miauth")) {
if (latestDonationInfoShownAt == null || (new Date(latestDonationInfoShownAt).getTime() < (Date.now() - (1000 * 60 * 60 * 24 * 30)))) {
popup(defineAsyncComponent(() => import('@/components/MkDonation.vue')), {}, {}, 'closed');
}
Expand Down

0 comments on commit 39becdb

Please sign in to comment.