Nullify all playfab references

This commit is contained in:
ZackRhodes 2022-12-07 11:57:01 -05:00
parent 1e463f6efc
commit 9b62b65d0e
3 changed files with 4 additions and 10 deletions

View File

@ -1017,11 +1017,6 @@ window.onload = function() {
GameUI.initialized = supportedBrowser;
ui.view.initialized = supportedBrowser;
setTimeout(() => {
if(Steam){
if(Steam.initAPI()){
playFabLogin();
}
}
document.getElementById("loading").style.display = "none";
}, 500);
if (!supportedBrowser) {

View File

@ -84,7 +84,7 @@ const SteamFunctions = {
Cloud.user.displayName = Steam.getSteamId().screenName
},
PurchaseIAP(STD, kreds) {
if (!steamOn) return;
/*if (!steamOn) return;
const TheItem = { ItemId: `${STD}STD`, Quantity: 1, Annotation: "Purchased via in-game store" };
PlayFab.settings.titleId = "59813";
const loginRequest = {
@ -113,10 +113,10 @@ const SteamFunctions = {
} else if (error !== null) {
console.log(error);
}
});
});*/
},
ConfirmSteamPurchase(OrderIdentifier) {
console.log(OrderIdentifier);
/*console.log(OrderIdentifier);
PlayFab.ClientApi.ConfirmPurchase({ OrderId: OrderIdentifier }, (result, error) => {
if (result !== null && result.data.Items != null) {
console.log(result);
@ -138,7 +138,7 @@ const SteamFunctions = {
} else if (error !== null) {
console.log(error);
}
});
});*/
},
PurchaseValidation() {
if (SteamFunctions.purchaseChecker.length > 0) {

View File

@ -45,7 +45,6 @@
</div>
<div id="performance-stats" class="c-performance-stats" style="display: none;"></div>
<script type="text/javascript" src="PlayFab/PlayFabClientApi.js"></script>
<script type="text/javascript" src="Steam/steam.js"></script>
<canvas id="forceRefreshCanvas" style="position: fixed; right: 0px; bottom: 0px; width: 100vw; height: 100%; opacity: 0.01; pointer-events: none; z-index: -20;"></canvas>
<script>