From cc88cd3b0310a6ea7692b5ef06188d4493c70953 Mon Sep 17 00:00:00 2001 From: anekos Date: Tue, 30 Nov 2010 00:08:41 +0900 Subject: accessor を Store に変更 --- twittperator.js | 11 ++++++----- 1 file 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(); -- cgit v1.2.3