Skip to content

Commit d35328b

Browse files
updating library for gh-pages
1 parent 855eecc commit d35328b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/loading-bar.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -160,9 +160,12 @@ angular.module('chieffancypants.loadingBar', [])
160160
} else if (stat >= 0.65 && stat < 0.9) {
161161
// increment between 0 - 2%
162162
rnd = (Math.random() * 2) / 100;
163-
} else {
163+
} else if (stat >= 0.9 && stat < 0.97) {
164164
// finally, increment it .5 %
165165
rnd = 0.005;
166+
} else {
167+
// after 95%, don't increment:
168+
rnd = 0;
166169
}
167170

168171
var pct = _status() + rnd;

0 commit comments

Comments
 (0)