aboutsummaryrefslogtreecommitdiff
path: root/src/BangState.hs
diff options
context:
space:
mode:
Diffstat (limited to 'src/BangState.hs')
-rw-r--r--src/BangState.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/BangState.hs b/src/BangState.hs
index fc3afab..1b76649 100644
--- a/src/BangState.hs
+++ b/src/BangState.hs
@@ -69,8 +69,8 @@ loadOwnBangs = eitherDecodeFileStrict "bangs.json" <|> return (Left "") >>= \cas
-- also spawns a thread for disk synchronization
initBangState :: IO BangState
initBangState = do
- -- TODO error handling for ddg bang polling, as well as regular polling
- ans <- httpJSON "https://duckduckgo.com/bang.v260.js" :: IO (Response DDGBangs)
+ -- we may want to actually poll this. oops.
+ ans <- httpJSON "https://duckduckgo.com/bang.js" :: IO (Response DDGBangs)
s <- BangState
<$> (loadOwnBangs >>= newTVarIO)
<*> newTVarIO (toBangs $ getResponseBody ans)