fix this/self in sla setup

This commit is contained in:
Stewart Allen 2021-08-01 12:23:35 -04:00
commit 77a5da7645
3 changed files with 5 additions and 6 deletions

View file

@ -8,7 +8,7 @@ let BASE = self.base,
POLY = BASE.polygons,
time = UTIL.time,
qtpi = Math.cos(Math.PI/4),
ccvalue = navigator ? navigator.hardwareConcurrency || 0 : 0,
ccvalue = this.navigator ? navigator.hardwareConcurrency || 0 : 0,
concurrent = self.Worker && ccvalue > 3 ? ccvalue - 1 : 0,
current = self.worker = {
print: null,