Don't show announcement popups if the tutorial isn't completed

This commit is contained in:
naskya 2023-07-08 21:47:06 +00:00
parent 2f4f3a3e02
commit cb6df7fe25
No known key found for this signature in database
GPG key ID: 164DFF24E2D40139

View file

@ -274,6 +274,7 @@ function checkForSplash() {
if ( if (
$i && $i &&
defaultStore.state.tutorial === -1 &&
!["/announcements", "/announcements/"].includes(window.location.pathname) !["/announcements", "/announcements/"].includes(window.location.pathname)
) { ) {
api("announcements", { withUnreads: true, limit: 10 }) api("announcements", { withUnreads: true, limit: 10 })