Fix: _source -> newSource

This commit is contained in:
eight 2017-11-01 08:37:18 +08:00
parent 098dc10f85
commit 398056c262

View File

@ -17,8 +17,8 @@ function createSourceLoader() {
function load() { function load() {
return fetchText(location.href) return fetchText(location.href)
.then(_source => { .then(newSource => {
source = _source; source = newSource;
return source; return source;
}); });
} }
@ -41,9 +41,9 @@ function createSourceLoader() {
function check() { function check() {
fetchText(location.href) fetchText(location.href)
.then(_source => { .then(newSource => {
if (source !== _source) { if (source !== newSource) {
source = _source; source = newSource;
return cb(source); return cb(source);
} }
}) })