aboutsummaryrefslogtreecommitdiffstats
path: root/vimp_to_android_phone.js
diff options
context:
space:
mode:
authoranekos2011-09-13 01:09:34 +0900
committeranekos2011-09-13 01:16:40 +0900
commitb6ee3e5cb9a34a99e387b0c47f8a76320c38b292 (patch)
treeef2bc88f92108b5157d2393de2b326fb68b038b3 /vimp_to_android_phone.js
parent6aad0ed3c73cca3d514192875e03c1a10920fa6a (diff)
downloadvimperator-plugins-b6ee3e5cb9a34a99e387b0c47f8a76320c38b292.tar.bz2
libly.Request.addEventListener のイベント名引数の変更に対応
Diffstat (limited to 'vimp_to_android_phone.js')
-rw-r--r--vimp_to_android_phone.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/vimp_to_android_phone.js b/vimp_to_android_phone.js
index 3b4821a..f428f59 100644
--- a/vimp_to_android_phone.js
+++ b/vimp_to_android_phone.js
@@ -32,7 +32,7 @@ var sendToPhone = function(requestURL) {
'Content-Type': 'application/x-www-form-urlencoded',
'X-Extension': 'true'
});
- req.addEventListener('onSuccess', function(res) {
+ req.addEventListener('success', function(res) {
var body = res.responseText;
if (body.substring(0, 2) == 'OK') {
liberator.echo('Send to phone successed.');
@@ -44,7 +44,7 @@ var sendToPhone = function(requestURL) {
liberator.open(signOutURL, liberator.NEW_TAB);
}
});
- req.addEventListener('onFailure', function(res) {
+ req.addEventListener('failure', function(res) {
liberator.echoerr('Send to phone failed.');
});
req.get();