diff --git a/js/h5p.js b/js/h5p.js index 92283f3..4fd6ea1 100644 --- a/js/h5p.js +++ b/js/h5p.js @@ -1937,7 +1937,13 @@ H5P.libraryFromString = function (library) { * The full path to the library. */ H5P.getLibraryPath = function (library) { - return H5PIntegration.url + '/libraries/' + library; + if (H5PIntegration.urlLibraries !== undefined) { + // This is an override for those implementations that has a different libraries URL, e.g. Moodle + return H5PIntegration.urlLibraries + '/' + library; + } + else { + return H5PIntegration.url + '/libraries/' + library; + } }; /**