OPPG-376: The forgotten code!
parent
ea9dd199aa
commit
b21d129d2c
|
@ -104,9 +104,12 @@ H5P.fullScreen = function ($el, obj) {
|
||||||
/**
|
/**
|
||||||
* Find the path to the content files base on the id of the content.
|
* Find the path to the content files base on the id of the content.
|
||||||
*/
|
*/
|
||||||
H5P.getContentPath = function(contentId) {
|
H5P.getPath = function (path, contentId) {
|
||||||
// TODO: Rewrite or remove... H5P.getContentPath = H5PIntegration.getContentPath would probably work f.i.
|
if (path.substr(0, 7) === 'http://' || path.substr(0, 8) === 'https://') {
|
||||||
return H5PIntegration.getContentPath(contentId);
|
return path;
|
||||||
|
}
|
||||||
|
|
||||||
|
return H5PIntegration.getContentPath(contentId) + path;
|
||||||
};
|
};
|
||||||
|
|
||||||
//
|
//
|
||||||
|
|
Loading…
Reference in New Issue