mirror of
https://github.com/cemu-project/cemu_graphic_packs.git
synced 2024-11-25 02:56:53 +01:00
12 lines
572 B
JavaScript
12 lines
572 B
JavaScript
|
notifications = document.getElementsByClassName("notification");
|
||
|
if (navigator.doNotTrack != 1) {
|
||
|
for (let i=0; i<notifications.length; i++) {
|
||
|
let notificationStatus = localStorage.getItem(notifications[i].id);
|
||
|
console.debug(`Checked if user has confirmed the ${notifications[i].id} notification, and resulted in ${notificationStatus}.`);
|
||
|
if (notificationStatus !=="true") notifications[i].hidden=false;
|
||
|
}
|
||
|
}
|
||
|
function confirmNotification(popupId) {
|
||
|
localStorage.setItem(popupId, true);
|
||
|
document.getElementById(popupId).hidden=true;
|
||
|
}
|