fix: missing global
in browser environments
#1067
+96
−2
Merged