|
60 | 60 | </div> |
61 | 61 | </div> |
62 | 62 | <div class="contentItem hidden" id="downgrade" style="padding: 0px;"> |
63 | | - <iframe src="https://oculusdb.rui2015.me/search?query=Beat+Saber&headsets=MONTEREY%2CHOLLYWOOD" style="width: 100%; height: 100%; border: none; overflow-y: visible;"></iframe> |
| 63 | + <iframe src="https://oculusdb.rui2015.me/search?query=Beat+Saber&headsets=MONTEREY%2CHOLLYWOOD&isqavs=true" style="width: 100%; height: 100%; border: none; overflow-y: visible;"></iframe> |
64 | 64 | </div> |
65 | 65 | <div class="contentItem hidden" id="download"> |
66 | 66 | <div id="progressBarContainers" style="width: 95%;"> |
|
330 | 330 | } |
331 | 331 |
|
332 | 332 | document.getElementById("login").onclick = () => { |
333 | | - location = "https://auth.oculus.com/login/?redirect_uri=https%3A%2F%2Fwww.oculus.com%2Fexperiences%2Fquest%2F" |
| 333 | + location = "https://auth.oculus.com/login/?redirect_uri=https%3A%2F%2Fsecure.oculus.com%2F&reason=page_require_login" |
334 | 334 | } |
335 | 335 |
|
336 | 336 | setInterval(() => { |
|
382 | 382 |
|
383 | 383 | function ChangeApp(package) { |
384 | 384 | console.log("Changing app to " + package) |
385 | | - fetch("questappversionswitcher/changeapp", { |
386 | | - method: "POST", |
387 | | - body: package |
388 | | - }).then(() => UpdateUI(true)) |
| 385 | + fetch("questappversionswitcher/changeapp?body=" + package).then(() => UpdateUI(true)) |
389 | 386 | UpdateUI(true) |
390 | 387 | } |
391 | 388 |
|
392 | 389 | document.getElementById("exit").onclick = () => { |
393 | | - fetch("questappversionswitcher/kill", { |
394 | | - method: "POST" |
395 | | - }) |
| 390 | + fetch("questappversionswitcher/kill") |
396 | 391 | } |
397 | 392 | document.getElementById("confirmPort").onclick = () => { |
398 | | - fetch("questappversionswitcher/changeport", { |
399 | | - method: "POST", |
400 | | - body: document.getElementById("port").value |
401 | | - }).then(res => { |
| 393 | + fetch("questappversionswitcher/changeport?body=" + document.getElementById("port").value).then(res => { |
402 | 394 | res.text().then(text => { |
403 | 395 | if(res.status == 200) { |
404 | 396 | TextBoxGood("serverTextBox", text) |
|
434 | 426 | var onlyAppData = document.getElementById("appdata").checked |
435 | 427 | backupInProgress = true |
436 | 428 | TextBoxText("backupTextBox", "Please wait while the Backup is being created. This can take a few minutes") |
437 | | - fetch("backup?package=" + config.currentApp + "&backupname=" + document.getElementById("backupname").value + (onlyAppData ? "&onlyappdata=true" : "") , { |
438 | | - method: "POST" |
439 | | - }).then(res => { |
| 429 | + fetch("backup?package=" + config.currentApp + "&backupname=" + document.getElementById("backupname").value + (onlyAppData ? "&onlyappdata=true" : "")).then(res => { |
440 | 430 | res.text().then(text => { |
441 | 431 | if (res.status == 202) { |
442 | 432 | TextBoxText("backupTextBox", text) |
|
490 | 480 | } |
491 | 481 |
|
492 | 482 | document.getElementById("uninstall").onclick = () => { |
493 | | - fetch(`android/uninstallpackage?package=${config.currentApp}`, { |
494 | | - method: "POST" |
495 | | - }).then(res => { |
| 483 | + fetch(`android/uninstallpackage?package=${config.currentApp}`).then(res => { |
496 | 484 | if (res.status == 230) GotoStep(3) |
497 | 485 | else GotoStep(2) |
498 | 486 | }) |
|
504 | 492 | if(text == "true") { |
505 | 493 | GotoStep(4) |
506 | 494 | } else { |
507 | | - fetch(`android/uninstallpackage?package=${config.currentApp}`, { |
508 | | - method: "POST" |
509 | | - }).then(res => { |
| 495 | + fetch(`android/uninstallpackage?package=${config.currentApp}`).then(res => { |
510 | 496 | if (res.status == 230) GotoStep(3) |
511 | 497 | else GotoStep(2) |
512 | 498 | }) |
|
529 | 515 | } |
530 | 516 |
|
531 | 517 | document.getElementById("install").onclick = () => { |
532 | | - fetch("restoreapp?package=" + config.currentApp + "&backupname=" + selectedBackup, { |
533 | | - method: "POST" |
534 | | - }).then(res => { |
| 518 | + fetch("restoreapp?package=" + config.currentApp + "&backupname=" + selectedBackup).then(res => { |
535 | 519 | res.text().then(text => { |
536 | 520 | if (res.status == 200) { |
537 | | - fetch("containsgamedata?package=" + config.currentApp + "&backupname=" + selectedBackup, { |
538 | | - method: "POST" |
539 | | - }).then(res => { |
| 521 | + fetch("containsgamedata?package=" + config.currentApp + "&backupname=" + selectedBackup).then(res => { |
540 | 522 | res.text().then(text => { |
541 | 523 | if (text == "False") { |
542 | 524 | GotoStep(5) |
|
557 | 539 | res.text().then(text => { |
558 | 540 | if (text == "True") { |
559 | 541 | TextBoxText("step4box", "Restoring game data. Please wait") |
560 | | - fetch("restoregamedata?package=" + config.currentApp + "&backupname=" + selectedBackup, { |
561 | | - method: "POST" |
562 | | - }).then(res => { |
| 542 | + fetch("restoregamedata?package=" + config.currentApp + "&backupname=" + selectedBackup).then(res => { |
563 | 543 | res.text().then(text => { |
564 | 544 | if (res.status == 200) GotoStep(5) |
565 | 545 | else { |
|
618 | 598 | document.getElementById("deleteContainer").className = "listContainer darken" |
619 | 599 | } |
620 | 600 |
|
621 | | - function CloseTokenPasswordPopup() { |
| 601 | + function CloseTokenPasswordPopup(done = false) { |
622 | 602 | document.getElementById("tokenPasswordContainer").className = "listContainer darken hidden" |
623 | 603 | GotoStep(8) |
| 604 | + if (!done) CloseTokenPasswordPopup(true) |
624 | 605 | } |
625 | 606 |
|
626 | 607 | function OpenTokenPasswordPopup() { |
|
649 | 630 | document.getElementById("confirmPassword").onclick = () => { |
650 | 631 | options.password = document.getElementById("passwordConfirm").value |
651 | 632 | options.app = options.parentName |
652 | | - fetch("/download", { |
653 | | - method: "POST", |
654 | | - body: JSON.stringify(options) |
655 | | - }).then(res => { |
| 633 | + fetch("/download?body=" + JSON.stringify(options)).then(res => { |
656 | 634 | res.text().then(text => { |
657 | 635 | if (res.status == 403) { |
658 | 636 | TextBoxError("step7box", text) |
|
669 | 647 | document.getElementById("tokenPassword").onclick = () => { |
670 | 648 | options.password = document.getElementById("passwordConfirm").value |
671 | 649 | options.app = options.parentName |
672 | | - fetch("/token", { |
673 | | - method: "POST", |
674 | | - body: JSON.stringify({ |
675 | | - token: params.get("token"), |
676 | | - password: document.getElementById("passwordToken").value |
677 | | - }) |
678 | | - }).then(res => { |
| 650 | + fetch("/token?body=" + JSON.stringify({ |
| 651 | + token: params.get("token"), |
| 652 | + password: document.getElementById("passwordToken").value |
| 653 | + })).then(res => { |
679 | 654 | res.text().then(text => { |
680 | 655 | if (res.status == 403) { |
681 | 656 | TextBoxError("step8box", text) |
|
0 commit comments