feat: Chrome extension support.

Livereload 插件

On Tuesday, November 25, 2014, NetPuter <notifications@github.com> wrote:

> In app/templates/_reload.js:
>
> > +        if (lastTimestamp !== xhr.responseText) {
> > +            lastTimestamp = xhr.responseText;
> > +            return chrome.runtime.reload();
> > +        }
> > +    };
> > +};
> > +
> > +
> > +(function() {
> > +    var xhr = new XMLHttpRequest;
> > +    xhr.open('GET', 'dev/reload.html');
> > +    xhr.send();
> > +
> > +    xhr.onload = function() {
> > +        lastTimestamp = xhr.responseText;
> > +        return setInterval(reload, 1000);
>
> 这是为啥？
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/wandoulabs/generator-wdj/pull/14/files#r20866396>.
>


-- 
Sent from Gmail Mobile