Skip to content

Commit

Permalink
Only read details when there was a new update.
Browse files Browse the repository at this point in the history
  • Loading branch information
arantius committed Jul 27, 2018
1 parent 34e0121 commit f7e950c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/browser/monkey-menu.js
Original file line number Diff line number Diff line change
Expand Up @@ -396,8 +396,10 @@ function userScriptUpdate(uuid) {
}, response => {
logUnhandledError();
gTplData.activeScript.updating = false;
for (let i of Object.keys(response.details)) {
gTplData.activeScript[i] = response.details[i];
if (response.result == 'updated') {
for (let i of Object.keys(response.details)) {
gTplData.activeScript[i] = response.details[i];
}
}
});
}

0 comments on commit f7e950c

Please sign in to comment.