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.
|
||||
*/
|
||||
H5P.getContentPath = function(contentId) {
|
||||
// TODO: Rewrite or remove... H5P.getContentPath = H5PIntegration.getContentPath would probably work f.i.
|
||||
return H5PIntegration.getContentPath(contentId);
|
||||
H5P.getPath = function (path, contentId) {
|
||||
if (path.substr(0, 7) === 'http://' || path.substr(0, 8) === 'https://') {
|
||||
return path;
|
||||
}
|
||||
|
||||
return H5PIntegration.getContentPath(contentId) + path;
|
||||
};
|
||||
|
||||
//
|
||||
|
|
Loading…
Reference in New Issue