aboutsummaryrefslogtreecommitdiffstats
path: root/twittperator.js
diff options
context:
space:
mode:
Diffstat (limited to 'twittperator.js')
-rwxr-xr-xtwittperator.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/twittperator.js b/twittperator.js
index 6883b24..4bbfd2a 100755
--- a/twittperator.js
+++ b/twittperator.js
@@ -1285,7 +1285,10 @@
tw.get(api, query, function(text) {
setRefresher();
// TODO 履歴をちゃんと "追記" するようにするようにするべき
- onload(history = JSON.parse(text));
+ let result = JSON.parse(text);
+ if (!target)
+ history = result;
+ onload(result);
});
}
} // }}}