Update creating-javascript-app-using-alfresco-js-api.md

This commit is contained in:
Eugenio Romano 2022-09-27 15:57:04 +02:00 committed by GitHub
parent a3447836b1
commit cff311897d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -45,7 +45,7 @@ Inside the `my-js-app` folder, create the `index.html` file with the following c
<script src="node_modules/alfresco-js-api/dist/alfresco-js-api.js"></script> <script src="node_modules/alfresco-js-api/dist/alfresco-js-api.js"></script>
<script > <script >
this.alfrescoJsApi = new AlfrescoApi({ provider:'ECM', hostEcm: 'http://localhost:8082/' }); this.alfrescoJsApi = new AlfrescoApi({ provider:'ECM', hostEcm: 'http://localhost:8082' });
this.alfrescoJsApi.login('admin', 'admin').then(function (data) { this.alfrescoJsApi.login('admin', 'admin').then(function (data) {
alert('API called successfully to login into Alfresco Content Services.'); alert('API called successfully to login into Alfresco Content Services.');