opensourceBIM / BIMserver-JavaScript-API

BIMserver JavaScript API
GNU Lesser General Public License v3.0
55 stars 35 forks source link

Init fix #26

Closed dominikschmieden closed 5 years ago

dominikschmieden commented 5 years ago

Updated the init() function to correctly reject its promise when the connection to the server can't be established (the error callback I added is not showing in the diff for some reason). Also replaced the call of callback() by errorCallback() further down to actually call the errorCallback when an error occurred (this was probably a bug).