其实我也不确定，但在这里他works。不知道有没有更好的办法？
On Nov 18, 2013 11:29 PM, "Sean Lee" <notifications@github.com> wrote:

> In src/bg/js/controllers/bgCtrl.js:
>
> > @@ -21,8 +22,11 @@ app.controller('bgCtrl', function BgCtrl($scope, courseService, alfredStorage) {
> >    chrome.cookies.onChanged.addListener(function(info){
> >      console.log("cookies is changed", info);
> >      $scope.$apply(function(){
> > -      alfredStorage.reset();
> > -      courseService.updateData();
> > +      // if and only if when cookie responsible for user was deleted reset the whole local storageif(info.cookie.name == "CAUTH" && info.removed == true)
> > +      if(info.cookie.name === "CAUTH" && info.removed === true)
>
> CAUTH是登出？
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/xiuxiude/coursera_alfred/pull/59/files#r7726733>
> .
>