From b424314744620d13b2919fecb5dcae018b9f62ea Mon Sep 17 00:00:00 2001 From: Zack Spear Date: Fri, 22 Apr 2022 16:26:59 -0700 Subject: [PATCH] refactor(upc): remove sessionStorage item for hiding ENOKEYFILE overlay during reboot --- plugins/dynamix/include/Boot.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/plugins/dynamix/include/Boot.php b/plugins/dynamix/include/Boot.php index 50b85fbd4..55996349a 100644 --- a/plugins/dynamix/include/Boot.php +++ b/plugins/dynamix/include/Boot.php @@ -83,6 +83,13 @@ $(document).ajaxSend(function(elm, xhr, s){ s.data += "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 = ''; +const guid = ''; +sessionStorage.removeItem(`${serverName}_${guid ? guid.slice(-12) : 'NO_GUID'}`);