Skip to content

Commit 67ab3f7

Browse files
ComputerEliteComputerElite
authored andcommitted
and clean up stuff
1 parent 8a4937c commit 67ab3f7

1 file changed

Lines changed: 1 addition & 17 deletions

File tree

WebServer.cs

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -39,14 +39,6 @@ public override void OnPageFinished(WebView view, string url)
3939
Logger.Log(url);
4040
if (url.Split("?")[0].Contains("oculus.com"))
4141
{
42-
if(CoreService.coreVars.loginStep == 2)
43-
{
44-
//Android.OS.Process.KillProcess(Android.OS.Process.MyPid());
45-
MainThread.BeginInvokeOnMainThread(() =>
46-
{
47-
//view.EvaluateJavascript("document.body.innerHTML += `<div style=\"display: flex; align - items: center; justify - content: center; width: 100 %; height: 100vh; top: 0; left: 0; position: fixed; background - color: #000000aa;\" id=\"popup\"><div style=\"padding: 10px;border-radius: 5px;background-color: #424546;\"><div style=\"font-size: 130%;margin-bottom: 30px;margin-top: 40px;\">Almost there</div>Click the X in the bottom left to restart QuestAppVersionSwitcher a final time. After you restarted press the blue continue as ... button to log in</div></div>`", null);
48-
});
49-
}
5042
if (wasOnFacebook)
5143
{
5244
// Restart app here
@@ -666,18 +658,10 @@ public void Start()
666658
server.StartServer(CoreService.coreVars.serverPort);
667659
Thread.Sleep(1500);
668660
if (CoreService.coreVars.loginStep == 1)
669-
{
670-
CoreService.coreVars.loginStep = 2;
671-
CoreService.coreVars.Save();
672-
//CoreService.browser.LoadUrl(CoreVars.oculusLoginUrl);
673-
CoreService.browser.LoadUrl("http://127.0.0.1:" + CoreService.coreVars.serverPort + "?loadoculus=true");
674-
}
675-
else if (CoreService.coreVars.loginStep == 2)
676661
{
677662
CoreService.coreVars.loginStep = 0;
678663
CoreService.coreVars.Save();
679-
CoreService.browser.LoadUrl(CoreVars.oculusLoginUrl);
680-
CoreService.browser.LoadUrl("http://127.0.0.1:" + CoreService.coreVars.serverPort + "/");
664+
CoreService.browser.LoadUrl("http://127.0.0.1:" + CoreService.coreVars.serverPort + "?loadoculus=true");
681665
}
682666
else CoreService.browser.LoadUrl("http://127.0.0.1:" + CoreService.coreVars.serverPort + "/");
683667
}

0 commit comments

Comments
 (0)