aboutsummaryrefslogtreecommitdiffstats
path: root/microUpdate.js
diff options
context:
space:
mode:
Diffstat (limited to 'microUpdate.js')
-rw-r--r--microUpdate.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/microUpdate.js b/microUpdate.js
index 274e20a..85e681e 100644
--- a/microUpdate.js
+++ b/microUpdate.js
@@ -31,7 +31,7 @@
// }}}
// PLUGIN INFO: {{{
-let PLUGIN_INFO =
+let PLUGIN_INFO = xml`
<VimperatorPlugin>
<name>{NAME}</name>
<description>Update blog more quickly.</description>
@@ -67,7 +67,7 @@ let PLUGIN_INFO =
== ToDo ==
]]></detail>
-</VimperatorPlugin>;
+</VimperatorPlugin>`;
// }}}
plugins.microUpdate = (function() {
@@ -84,12 +84,12 @@ plugins.microUpdate = (function() {
transport.open('POST', this.endpoint['collection'], false /* synchronous */);
transport.setRequestHeader('X-WSSE', hatena.wsseHeader);
transport.setRequestHeader('Content-Type', 'application/atom+xml;type=entry;charset="utf-8"');
- transport.send(<>
+ transport.send(`
<entry xmlns="http://purl.org/atom/ns#">
<title>{title}</title>
<content type="text/plain">{content}</content>
</entry>
- </>.toXMLString());
+ `.toXMLString());
return transport.responseXML;
}
};