mirror of
https://github.com/cemu-project/cemu_graphic_packs.git
synced 2024-11-23 01:59:18 +01:00
8433e2253c
Also new website! We've got the version2 branch if people want to search in those files.
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;
|
|
} |