minisrv remembers sessions for 180 seconds, so allow the user to clear the minbrowser flag

This commit is contained in:
zefie
2024-05-20 19:50:42 -04:00
parent f07510cfc4
commit f9bf10fd17
3 changed files with 15 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
var minisrv_service_file = true;
// remove restrictions once this page is shown, since the user will be 'trapped' anyway
session_data.disableLockdown();
ssid_sessions[socket.ssid].delete("wtv-need-upgrade")
ssid_sessions[socket.ssid].delete("wtv-")
headers = `200 OK
Content-type: text/html
wtv-expire: wtv-home:
wtv-visit: wtv-home:/home`;
data = '';

View File

@@ -77,6 +77,7 @@ data =`<html>
<li><a href="wtv-tricks:/tricks">WTV Tricks</a></li>
<li><a href="wtv-flashrom:/big-willie">Big Willie</a> (Custom ROMs)</li>
<li><a href="wtv-flashrom:/willie">Ultra Willie</a> (Stock ROMs)</li>
<li><a href="wtv-head-waiter:/no-mini">Get me outta here!</a> (Unset MiniBrowser Flags)</li>
</ul>
<br>

View File

@@ -428,6 +428,7 @@
<Content Include="includes\ServiceVault\wtv-flashrom\lc2-download-failed.js" />
<Content Include="includes\ServiceVault\wtv-flashrom\noflash.js" />
<Content Include="includes\ServiceVault\wtv-flashrom\willie.js" />
<Content Include="includes\ServiceVault\wtv-head-waiter\no-mini.js" />
<Content Include="includes\ServiceVault\wtvchat\catchall.js">
<SubType>Code</SubType>
</Content>