Skip to content

Commit bdd7cec

Browse files
fix: removed useless logs
1 parent 3155163 commit bdd7cec

2 files changed

Lines changed: 2 additions & 6 deletions

File tree

src/lib/acode.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ export default class Acode {
321321
view: cmView,
322322
});
323323

324-
this.define("config",config);
324+
this.define("config", config);
325325
this.define("Url", Url);
326326
this.define("page", Page);
327327
this.define("Color", Color);

src/main.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -206,11 +206,7 @@ async function onDeviceReady() {
206206
}
207207

208208
if (navigator.onLine) {
209-
const purchases = await helpers.promisify(iap.getPurchases).catch((e) => {
210-
console.log("error", "purchase retrieval error");
211-
console.log("error", e);
212-
return [];
213-
});
209+
const purchases = await helpers.promisify(iap.getPurchases);
214210
const isPro = purchases.find((p) =>
215211
p.productIds.includes("acode_pro_new"),
216212
);

0 commit comments

Comments
 (0)