Skip to content

Commit

Permalink
Add upgrade script
Browse files Browse the repository at this point in the history
  • Loading branch information
otacke committed May 7, 2019
1 parent 128cdd3 commit 910775b
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions upgrades.js
@@ -0,0 +1,24 @@
var H5PUpgrades = H5PUpgrades || {};

H5PUpgrades['H5P.Essay'] = (function () {
return {
1: {
/**
* Asynchronous content upgrade hook.
*
* Add new default parameters.
*
* @param {Object} parameters
* @param {function} finished
*/
2: function (parameters, finished, extras) {
parameters.media = {};
parameters.behaviour.pointsHost = 1;
parameters.ariaYourResult = 'You got @score out of @total points';
parameters.ariaNavigatedToSolution = 'Navigated to newly included sample solution after textarea.';

finished(null, parameters, extras);
}
}
};
})();

0 comments on commit 910775b

Please sign in to comment.