Skip to content

Commit

Permalink
Issue #2247, adds shim for preserving 'adapt_manifest' identifier
Browse files Browse the repository at this point in the history
This is a backport of the v4.0.0 change.
  • Loading branch information
brian-learningpool committed Jan 23, 2019
1 parent 91723a7 commit 2eb9b47
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion grunt/config/replace.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,13 @@ module.exports = function (grunt, options) {
grunt.log.writeln('WARNING: xAPI activityID has not been set');
}
}


// Shim to preserve the 'adapt_manifest' identifier.
if (configJson.hasOwnProperty('_spoor')) {
configJson._spoor._advancedSettings = configJson._spoor._advancedSettings || {};
configJson._spoor._advancedSettings._manifestIdentifier = spoor._advancedSettings._manifestIdentifier || 'adapt_manifest';
}

// Combine the course and config JSON so both can be passed to replace.
return {
'course': filterNullValues(courseJson),
Expand Down

0 comments on commit 2eb9b47

Please sign in to comment.