From 1bf393a9afe7cfc257ebb7e569196ce9955c03a2 Mon Sep 17 00:00:00 2001 From: Frode Petterson Date: Wed, 13 Jan 2016 08:45:00 +0100 Subject: [PATCH] Allow custom URL for libraries --- js/h5p.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/h5p.js b/js/h5p.js index 24d9846..16af37f 100644 --- a/js/h5p.js +++ b/js/h5p.js @@ -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; }; /**