feat: add stealth mode select step to setup wizard (#6104)

feat: add stealth mode select to setup wizard

feat: enable stealth mode until user finishes setup wizard

Co-authored-by: SoftFever <softfeverever@gmail.com>
This commit is contained in:
Pim
2024-07-31 13:51:07 +02:00
committed by GitHub
parent 3510158cd8
commit f0f5c3bbe9
11 changed files with 157 additions and 7 deletions

View File

@@ -0,0 +1,48 @@
function OnInit()
{
TranslatePage();
SendStealthModeCheck();
}
function SendStealthModeCheck()
{
let nVal="no";
if( $('#StealthMode').is(':checked') )
nVal="yes";
var tSend={};
tSend['sequence_id']=Math.round(new Date() / 1000);
tSend['command']="save_stealth_mode";
tSend['data']={};
tSend['data']['action']=nVal;
SendWXMessage( JSON.stringify(tSend) );
return true;
}
function GotoNetPluginPage()
{
let bRet=SendStealthModeCheck();
if(bRet)
window.location.href="../5/index.html";
}
function FinishGuide()
{
var tSend={};
tSend['sequence_id']=Math.round(new Date() / 1000);
tSend['command']="user_guide_finish";
tSend['data']={};
tSend['data']['action']="finish";
SendWXMessage( JSON.stringify(tSend) );
//window.location.href="../6/index.html";
}