From 353f1286f5b9b0dfec96c5f536caa24bf0db1336 Mon Sep 17 00:00:00 2001 From: Mario Romano Date: Wed, 1 Jun 2016 16:54:56 +0100 Subject: [PATCH] remove defaut ip from upload --- .../ng2-alfresco-upload/src/services/upload.service.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/ng2-components/ng2-alfresco-upload/src/services/upload.service.ts b/ng2-components/ng2-alfresco-upload/src/services/upload.service.ts index 8e105169ef..de04b87de8 100644 --- a/ng2-components/ng2-alfresco-upload/src/services/upload.service.ts +++ b/ng2-components/ng2-alfresco-upload/src/services/upload.service.ts @@ -32,7 +32,7 @@ declare let AlfrescoApi: any; */ @Injectable() export class UploadService { - private _host: string = 'http://192.168.99.100:8080'; + private _host: string = ''; private _baseUrlPath: string = '/alfresco/api/-default-/public/alfresco/versions/1'; private _url: string = '/alfresco/service/api/upload'; @@ -47,9 +47,7 @@ export class UploadService { constructor(private settings: AlfrescoSettingsService) { console.log('UploadService constructor'); - if (settings) { - this._host = settings.host; - } + this._host = settings.host; this._alfrescoClient = this.getAlfrescoClient(); }