Allow custom URL for libraries

pull/17/head
Frode Petterson 2016-01-13 08:45:00 +01:00
parent b4fd0e098c
commit 1bf393a9af
1 changed files with 1 additions and 1 deletions

View File

@ -1482,7 +1482,7 @@ H5P.libraryFromString = function (library) {
* The full path to the library.
*/
H5P.getLibraryPath = function (library) {
return H5PIntegration.url + '/libraries/' + library;
return (H5PIntegration.libraryUrl !== undefined ? H5PIntegration.libraryUrl + '/' : H5PIntegration.url + '/libraries/') + library;
};
/**