Skip to content

Commit

Permalink
remove consolelogs
Browse files Browse the repository at this point in the history
  • Loading branch information
foxt committed Jan 23, 2023
1 parent e3bf735 commit 0a00153
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,6 @@ export default class iCloudService extends EventEmitter {
this.pcsEnabled = typeof j.isDeviceConsentedForPCS == "boolean";
this.pcsAccess = this.pcsEnabled ? j.isDeviceConsentedForPCS : true;
this.ICDRSDisabled = j.isICDRSDisabled || false;
console.log(j);
}
}

Expand All @@ -301,7 +300,6 @@ export default class iCloudService extends EventEmitter {
}
let pcsRequest = await fetch("https://setup.icloud.com/setup/ws/1/requestPCS", { headers: this.authStore.getHeaders(), method: "POST", body: JSON.stringify({ appName, derivedFromUserAction: true }) });
let pcsJson = await pcsRequest.json();
console.log(pcsJson);
while (true) {
if (pcsJson.status == "success") {
break;
Expand All @@ -316,7 +314,6 @@ export default class iCloudService extends EventEmitter {
}
pcsRequest = await fetch("https://setup.icloud.com/setup/ws/1/requestPCS", { headers: this.authStore.getHeaders(), method: "POST", body: JSON.stringify({ appName, derivedFromUserAction: false }) });
pcsJson = await pcsRequest.json();
console.log(pcsJson);
}
}
this.authStore.addCookies(pcsRequest.headers.raw()["set-cookie"]);
Expand Down

0 comments on commit 0a00153

Please sign in to comment.