Skip to content

Commit

Permalink
Make all
Browse files Browse the repository at this point in the history
  • Loading branch information
j3k0 committed Apr 10, 2019
1 parent bf33e8c commit af6e764
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 11 deletions.
7 changes: 2 additions & 5 deletions www/store-android.js
Original file line number Diff line number Diff line change
Expand Up @@ -2370,11 +2370,8 @@ function iabLoaded(validProducts) {

if (store.autoRefreshIntervalMillis !== 0) {
// Auto-refresh every 24 hours (or autoRefreshIntervalMillis)
window.setInterval(function() {
store.iabGetPurchases(function() {
store.log.info('purchases automatically refreshed.');
});
}, store.autoRefreshIntervalMillis || (1000 * 3600 * 24));
var interval = store.autoRefreshIntervalMillis || (1000 * 3600 * 24);
window.setInterval(store.refresh, interval);
}
}

Expand Down
9 changes: 3 additions & 6 deletions www/store-windows.js
Original file line number Diff line number Diff line change
Expand Up @@ -2370,11 +2370,8 @@ function iabLoaded(validProducts) {

if (store.autoRefreshIntervalMillis !== 0) {
// Auto-refresh every 24 hours (or autoRefreshIntervalMillis)
window.setInterval(function() {
store.iabGetPurchases(function() {
store.log.info('purchases automatically refreshed.');
});
}, store.autoRefreshIntervalMillis || (1000 * 3600 * 24));
var interval = store.autoRefreshIntervalMillis || (1000 * 3600 * 24);
window.setInterval(store.refresh, interval);
}
}

Expand Down Expand Up @@ -2600,7 +2597,7 @@ store.when("product", "finished", function(product) {
var purchase = purchases[i];
var p = store.get(purchase.license.productId);
if (!p) {
store.log.warn("plugin -> user owns a non-registered product");
store.log.warn("plugin -> user owns a non-registered product: " + purchase.license.productId);
continue;
}
store.setProductData(p, purchase);
Expand Down

0 comments on commit af6e764

Please sign in to comment.