mirror of
https://github.com/HeyPuter/puter.git
synced 2026-01-16 01:50:59 -06:00
fix: ignore two calls with undefined origin
This commit is contained in:
@@ -71,6 +71,11 @@ export class FilesystemService extends putility.concepts.Service {
|
||||
const svc_apiAccess = this._.context.services.get('api-access');
|
||||
const api_info = svc_apiAccess.get_api_info();
|
||||
|
||||
if ( api_info.api_origin === undefined ) {
|
||||
// This will get called again later with updated information
|
||||
return;
|
||||
}
|
||||
|
||||
this.socket = io(api_info.api_origin, {
|
||||
auth: { auth_token: api_info.auth_token }
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user