From d0d3e460a6296093739e3d70e0b2752a44913cd0 Mon Sep 17 00:00:00 2001
From: anekos
Date: Sun, 29 Jan 2012 12:43:12 +0900
Subject: 起動時に切断されるのを回避
---
twittperator.js | 27 ++++++++++++++++-----------
1 file changed, 16 insertions(+), 11 deletions(-)
(limited to 'twittperator.js')
diff --git a/twittperator.js b/twittperator.js
index bbf7003..8ccb3c8 100644
--- a/twittperator.js
+++ b/twittperator.js
@@ -26,7 +26,7 @@
// INFO {{{
let INFO =
<>
-
teramako
@@ -174,7 +174,7 @@ let INFO =
Write the plugin.
-
@@ -1553,6 +1553,7 @@ let INFO =
clearRetryTimer();
if (!connection)
return;
+ window.alert(Error().stack);
connection.cancel();
liberator.log("Twittperator: stop " + name);
}
@@ -2658,16 +2659,20 @@ let INFO =
Twittperator.loadPlugins();
- if (setting.useChirp){
- if(setting.allReplies)
- ChirpUserStream.start({"replies":"all"});
- else
- ChirpUserStream.start();
- }
+ liberator.registerObserver(
+ 'enter',
+ function () {
+ if (setting.useChirp){
+ if(setting.allReplies)
+ ChirpUserStream.start({"replies":"all"});
+ else
+ ChirpUserStream.start();
+ }
- let trackWords = setting.trackWords || Store.get("trackWords");
- if (trackWords)
- TrackingStream.start({track: trackWords});
+ let trackWords = setting.trackWords || Store.get("trackWords");
+ if (trackWords)
+ TrackingStream.start({track: trackWords});
+ });
__context__.onUnload = function() {
Store.set("history", history);
--
cgit v1.2.3