mirror of
https://github.com/unraid/webgui.git
synced 2026-01-27 20:19:10 -06:00
refactor(upc): remove sessionStorage item for hiding ENOKEYFILE overlay during reboot
This commit is contained in:
@@ -83,6 +83,13 @@ $(document).ajaxSend(function(elm, xhr, s){
|
||||
s.data += "csrf_token=<?=$var['csrf_token']?>";
|
||||
}
|
||||
});
|
||||
/**
|
||||
* If we have a sessionStorage item for hiding the UPC's 'lets unleash your hardware' overlay for ENOKEYFILE state users
|
||||
* this will remove the item so that if the user reboots their server the overlay will display again once the server comes back up.
|
||||
*/
|
||||
const serverName = '<?= $var['NAME'] ?>';
|
||||
const guid = '<?= $var['flashGUID'] ?>';
|
||||
sessionStorage.removeItem(`${serverName}_${guid ? guid.slice(-12) : 'NO_GUID'}`);
|
||||
</script>
|
||||
</head>
|
||||
<?
|
||||
|
||||
Reference in New Issue
Block a user