cemu_graphic_packs/docs/js/index.js
Crementif 8433e2253c Replace with 1.14.0 repository
Also new website! We've got the version2 branch if people want to search in those files.
2018-10-31 11:03:04 +01:00

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;
}