[feature-274] add Oculus binary ids to versions json

This commit is contained in:
MathieuG-P
2023-10-23 22:28:56 +02:00
parent c0f2baffa6
commit b576a33293
3 changed files with 76 additions and 6 deletions
@@ -35,7 +35,7 @@ export class BsOculusDownloaderService {
private isUserTokenValid(token: string): boolean{
// Code take from "https://github.com/ComputerElite/QuestAppVersionSwitcher" (TokenTools.cs)
// Code taken from "https://github.com/ComputerElite/QuestAppVersionSwitcher" (TokenTools.cs)
log.info("Checking if Oculus user token is valid");
@@ -116,13 +116,11 @@ export class BsOculusDownloaderService {
clearTimeout(timout);
if(window.isDestroyed()){ return; }
if(!saveToken){
window.webContents.session.clearStorageData();
this.clearTokenCookie();
}
if(window.isClosable()){
if(window.isClosable() && !window.isDestroyed()){
window.close();
}
});
@@ -189,7 +187,6 @@ export class BsOculusDownloaderService {
})().catch(err => obs.error(err));
return () => {
console.log("C FINI MAIN 2");
sub?.unsubscribe();
this.oculusDownloader.stopDownload();
}
+1
View File
@@ -16,6 +16,7 @@ export interface BSVersion extends PartialBSVersion {
oculus?: boolean;
color?: string;
downloadedFrom?: BsStore;
OculusBinaryId?: string;
}