aboutsummaryrefslogtreecommitdiffstats
path: root/twittperator.js
diff options
context:
space:
mode:
authoranekos2010-11-30 00:08:41 +0900
committeranekos2010-11-30 00:08:41 +0900
commitcc88cd3b0310a6ea7692b5ef06188d4493c70953 (patch)
tree6c43ec374d68c35779f0024a21d9a7553b8d1ecd /twittperator.js
parent4cb789f00358d3e73bc241f26e0352bd559e2837 (diff)
downloadvimperator-plugins-cc88cd3b0310a6ea7692b5ef06188d4493c70953.tar.bz2
accessor を Store に変更
Diffstat (limited to 'twittperator.js')
-rw-r--r--twittperator.js11
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();