Skip to content

Commit

Permalink
v0.7.4 - Vault and gift chest bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
jakcodex committed Aug 29, 2017
1 parent ff8fa90 commit 60014a3
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 4 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
**2017-08-29** version 0.7.4

- Vault chests null data bug fixed
- Gift chests empty bug fixed
- Updated recommended CORS settings

**2017-08-25** version 0.7.3

- Fixed bug in mule localStorage throwing errors when loading chests
Expand Down
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ This version of Muledump now rate limits how fast you hit Deca's servers in an a
accountLoadDelay = 5
```

In this example, and by default, there is a 5-second delay between loading each account.
In this example, and by default, there is a 5-second delay between loading each account. Setting to 0 will disable the limiter.

## Synopsis

Expand All @@ -44,6 +44,7 @@ All released versions are [here](https://github.com/jakcodex/muledump/releases).
- edit **`accounts_sample.js`**
- rename it to **`accounts.js`**
- add chrome extension **[Allow-Control-Allow-Origin: *](https://chrome.google.com/webstore/detail/allow-control-allow-origi/nlfbmbojpeacfghkpbjhddihlkkiljbi)**
- in CORS settings clear any existing Intercepted URLs and add: https://realmofthemadgodhrd.appspot.com/*
- open **`muledump.html`**

## Not so obvious features
Expand All @@ -52,6 +53,7 @@ All released versions are [here](https://github.com/jakcodex/muledump/releases).
- click on account name for individual options menu
- ctrl-click account name to temporarily hide it from totals
- read the `accounts.js` file, it has some variables to play with
- logins thru muledump count towards daily login calendar

## Head to the [wiki](https://github.com/atomizer/muledump/wiki) for more information!

Expand Down
7 changes: 5 additions & 2 deletions lib/mule.js
Original file line number Diff line number Diff line change
Expand Up @@ -632,7 +632,10 @@ Mule.prototype.parse = function(data) {
this.dom.append($('<hr class="vaults">'));
// gift chest
var gifts = d.Account.Gifts;
if(gifts && this.opt('gifts')) {
window.techlog("-- Begin Gifts JSON --");
window.techlog(JSON.stringify(gifts));
window.techlog("-- End Gifts JSON --");
if(typeof gifts === 'string' && this.opt('gifts')) {
var items = gifts.split(',').reverse();
this.items.vaults.push(items); // for totals
var garr = []
Expand All @@ -653,7 +656,7 @@ Mule.prototype.parse = function(data) {
window.techlog(JSON.stringify(chests));
window.techlog("-- End Chests JSON --");
for (i = 0; i < chests.length; i++) {
if (chests[i] === undefined || chests[i] === 0) {
if ( typeof chests[i] !== "string" ) {
arr.push(null);
continue;
}
Expand Down
2 changes: 1 addition & 1 deletion lib/muledump.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
(function($, window) {

var VERSION = '0.7.3';
var VERSION = '0.7.4';

// version check

Expand Down

0 comments on commit 60014a3

Please sign in to comment.