aboutsummaryrefslogtreecommitdiffstats
path: root/reading.js
diff options
context:
space:
mode:
Diffstat (limited to 'reading.js')
-rw-r--r--reading.js8
1 files changed, 5 insertions, 3 deletions
diff --git a/reading.js b/reading.js
index d81449b..d8a7845 100644
--- a/reading.js
+++ b/reading.js
@@ -1,4 +1,4 @@
-/**
+/*
* ==VimperatorPlugin==
* @name reading.js
* @description update Twitter's status to current URL and comment
@@ -131,7 +131,9 @@ liberator.commands.addUserCommand(['reading'], "update Twitter's status to curre
}
},
// complete logic is none.
- { bang: true }
+ {
+ bang: true,
+ }
);
// stuff functions
@@ -162,7 +164,7 @@ function $s(query, node) {
}
function canonicalizeURL(url) {
- const PATHTRAQ_CANONICALIZE_URL_API = 'http://api.pathtraq.com/normalize_url2?api=json;url=';
+ const PATHTRAQ_CANONICALIZE_URL_API = 'http://api.pathtraq.com/normalize_url2?api=json&url=';
var req = new XMLHttpRequest();
req.open('GET', PATHTRAQ_CANONICALIZE_URL_API + encodeURI(url), false);