I created a PR in the source repo to fix this. The code you suggest seems to be the minimized source, not the source from the repo.
https://github.com/Tendsty/gooboo/pull/49