diff options
author | anekos | 2010-11-30 00:08:41 +0900 |
---|---|---|
committer | anekos | 2010-11-30 00:08:41 +0900 |
commit | cc88cd3b0310a6ea7692b5ef06188d4493c70953 (patch) | |
tree | 6c43ec374d68c35779f0024a21d9a7553b8d1ecd /twittperator.js | |
parent | 4cb789f00358d3e73bc241f26e0352bd559e2837 (diff) | |
download | vimperator-plugins-cc88cd3b0310a6ea7692b5ef06188d4493c70953.tar.bz2 |
accessor を Store に変更
Diffstat (limited to 'twittperator.js')
-rw-r--r-- | twittperator.js | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/twittperator.js b/twittperator.js index ff02c68..6267bb0 100644 --- a/twittperator.js +++ b/twittperator.js @@ -1796,6 +1796,11 @@ let PLUGIN_INFO = } }, // }}} }; // }}} + let Store = storage.newMap("twittperator", { store: true }); // {{{ + Store.set("clientName", "Twittperator"); + Store.set("consumerKey", "GQWob4E5tCHVQnEVPvmorQ"); + Store.set("consumerSecret", "gVwj45GaW6Sp7gdua6UFyiF910ffIety0sD1dv36Cz8"); + // }}} function setup() { // {{{ function rejectMine(st) @@ -2172,11 +2177,6 @@ let PLUGIN_INFO = let statusRefreshTimer; let expiredStatus = true; - let accessor = storage.newMap("twittperator", { store: true }); - accessor.set("clientName", "Twittperator"); - accessor.set("consumerKey", "GQWob4E5tCHVQnEVPvmorQ"); - accessor.set("consumerSecret", "gVwj45GaW6Sp7gdua6UFyiF910ffIety0sD1dv36Cz8"); - let history = __context__.Tweets; if (!history) history = __context__.Tweets = accessor.get("history", []); @@ -2194,6 +2194,7 @@ let PLUGIN_INFO = __context__.Twittperator = Twittperator; __context__.Twitter = Twitter; __context__.Utils = Utils; + __context__.Store = Store; Twittperator.loadPlugins(); |