HFP-1942 Add crossorigin api call.
Update minor version of core since interface changespull/52/head
parent
942a083afa
commit
3ce0adf418
|
@ -1773,7 +1773,7 @@ class H5PCore {
|
||||||
|
|
||||||
public static $coreApi = array(
|
public static $coreApi = array(
|
||||||
'majorVersion' => 1,
|
'majorVersion' => 1,
|
||||||
'minorVersion' => 15
|
'minorVersion' => 16
|
||||||
);
|
);
|
||||||
public static $styles = array(
|
public static $styles = array(
|
||||||
'styles/h5p.css',
|
'styles/h5p.css',
|
||||||
|
|
10
js/h5p.js
10
js/h5p.js
|
@ -1938,6 +1938,16 @@ H5P.createTitle = function (rawTitle, maxLength) {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get crossorigin option that is set for site. Usefull for setting crossorigin policy for elements.
|
||||||
|
*
|
||||||
|
* @returns {string|null} Returns the string that should be set as crossorigin policy for elements or null if
|
||||||
|
* no policy is set.
|
||||||
|
*/
|
||||||
|
H5P.getCrossOrigin = function () {
|
||||||
|
return H5PIntegration.crossorigin ? H5PIntegration.crossorigin : null;
|
||||||
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Async error handling.
|
* Async error handling.
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in New Issue