re-add privacy statement

Re-Added privacy statement and ported it over to jones' new system
This commit is contained in:
StroepWafel
2025-11-29 16:51:59 +10:30
parent 60ce18280e
commit fd86e57442
5 changed files with 174 additions and 18 deletions
+8 -1
View File
@@ -24,6 +24,7 @@ import loading from "@/seqta/ui/Loading";
import { SendNewsPage } from "@/seqta/utils/SendNewsPage";
import { loadHomePage } from "@/seqta/utils/Loaders/LoadHomePage";
import { OpenWhatsNewPopup } from "@/seqta/utils/Openers/OpenWhatsNewPopup";
import { showPrivacyNotification } from "@/seqta/utils/Openers/OpenPrivacyNotification";
import { updateTimetableTimes } from "@/seqta/utils/updateTimetableTimes";
@@ -93,7 +94,13 @@ export async function finishLoad() {
console.error("Error during loading cleanup:", err);
}
if (settingsState.justupdated && !document.getElementById("whatsnewbk")) {
// Show privacy statement notification on first open of this version (before what's new)
if (!settingsState.privacyStatementShown && !document.getElementById("whatsnewbk")) {
showPrivacyNotification();
settingsState.privacyStatementShown = true;
}
if (settingsState.justupdated && !document.getElementById("whatsnewbk") && !document.getElementById("privacy-notification")) {
OpenWhatsNewPopup();
}
}