Fix: _source -> newSource
This commit is contained in:
parent
098dc10f85
commit
398056c262
|
@ -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);
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue
Block a user