Update Layer.js

This commit is contained in:
Luis Fernando Molina committed 2020-10-01 19:05:43 +02:00
1 parent 06f5839ceb
commit 8152e65bdb
1 file changed
+1 -2
+1 -2
View File
@@ -509,7 +509,7 @@ function newLayer() {
if (storedValue !== undefined) {
if (storedValue !== thisObject.status) {
if (storedValue === LAYER_STATUS.ON) {
if (storedValue === LAYER_STATUS.ON && thisObject.status === LAYER_STATUS.OFF) {
resetProgressBars()
changeStatusTo(LAYER_STATUS.LOADING)
}
@@ -526,7 +526,6 @@ function newLayer() {
// we ignore errors here since most likely they will be parsing errors.
}
/* Check when the loading finishes */
if (
thisObject.status === LAYER_STATUS.LOADING &&
marketFileProgressBar.value === 100 &&