Skip to content

Commit c03b6ed

Browse files
ComputerEliteComputerElite
authored andcommitted
add reload button for downgrade iframe
1 parent 730ea26 commit c03b6ed

5 files changed

Lines changed: 15 additions & 7 deletions

File tree

QuestAppVersionSwitcher/Assets/html/index.html

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@
1616
<div class="button" style="margin-top: 5px;" onclick="LaunchApp()">Launch Game</div>
1717
</div>
1818
<div class="menuItem selected" section="backup">Backup</div>
19-
<div class="menuItem" section="downgrade">Downgrade</div>
19+
<div class="menuItem" section="downgrade">Downgrade
20+
<div class="button" id="reloadDowngradeIframe" onclick="ReloadDowngradeIFrame()">Reload</div></div>
2021
<div class="menuItem" section="download">Download progress</div>
2122
<div class="menuItem" section="patching">Mod my game</div>
2223
<div class="menuItem" section="mods" id="modsButton">Installed Mods</div>
@@ -195,7 +196,7 @@ <h2>You can download mods and cosmetics from the following sites. Only QMods are
195196
<div id="backupTextBox" class="textBox"></div>
196197
</div>
197198
</div>
198-
<div class="contentItem hidden" style="padding: 0px;" id="downgrade" style="padding: 0px;">
199+
<div class="contentItem hidden" style="padding: 0px; position: relative" id="downgrade" style="padding: 0px;">
199200
<b style="font-size: 4em;" id="downgradeLoginMsg">To downgrade you must first log in in the tools & options tab!</b>
200201
<iframe id="downgradeframe" src=""></iframe>
201202
</div>

QuestAppVersionSwitcher/Assets/html/script.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,10 @@ var currentGameVersion = ""
1515

1616
const browser = document.getElementById("browser")
1717
const toastsE = document.getElementById("toasts")
18-
document.getElementById("downgradeframe").src = `https://oculusdb.rui2015.me/search?query=Beat+Saber&headsets=MONTEREY%2CHOLLYWOOD${IsOnQuest() ? `&isqavs=true` : ``}`
19-
18+
ReloadDowngradeIFrame();
19+
function ReloadDowngradeIFrame() {
20+
document.getElementById("downgradeframe").src = `https://oculusdb.rui2015.me/search?query=Beat+Saber&headsets=MONTEREY%2CHOLLYWOOD${IsOnQuest() ? `&isqavs=true` : ``}`
21+
}
2022
// connect to websocket one port higher than the server
2123
var socket = new WebSocket("ws://" + window.location.hostname + ":" + (parseInt(window.location.port) + 1) + "/");
2224
socket.onerror = function (error) {

QuestAppVersionSwitcher/Assets/html/style.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,11 @@
1919
animation: linear loaderSquareSpin 3s infinite;
2020
}
2121

22+
#reloadDowngradeIframe {
23+
z-index: 0;
24+
margin-left: 70px;
25+
}
26+
2227
.loaderCircleHole {
2328
position: absolute;
2429
background-color: #414141;

QuestAppVersionSwitcher/Properties/AndroidManifest.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<manifest xmlns:android="http://schemas.android.com/apk/res/android" android:versionName="1.13.15" package="com.ComputerElite.questappversionswitcher" android:installLocation="preferExternal" android:versionCode="98">
2+
<manifest xmlns:android="http://schemas.android.com/apk/res/android" android:versionName="1.13.16" package="com.ComputerElite.questappversionswitcher" android:installLocation="preferExternal" android:versionCode="99">
33
<uses-sdk android:minSdkVersion="28" android:targetSdkVersion="32" />
44
<uses-permission android:name="oculus.permission.handtracking" />
55
<uses-permission android:name="com.oculus.permission.HAND_TRACKING" />

QuestAppVersionSwitcher/Properties/AssemblyInfo.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,5 @@
2222
// Minor Version
2323
// Build Number
2424
// Revision
25-
[assembly: AssemblyVersion("1.13.15.0")]
26-
[assembly: AssemblyFileVersion("1.13.15.0")]
25+
[assembly: AssemblyVersion("1.13.16.0")]
26+
[assembly: AssemblyFileVersion("1.13.16.0")]

0 commit comments

Comments
 (0)