Skip to content

Commit

Permalink
Fix log exception if closeOnUnload is true and a recover fn is set
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonWoolf committed Jan 30, 2018
1 parent 7bec661 commit f60aae1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/lib/util/defaults.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ Defaults.normaliseOptions = function(options) {
}

if(typeof options.recover === 'function' && options.closeOnUnload === true) {
Logger.logAction(LOG_ERROR, 'Defaults.normaliseOptions', 'closeOnUnload was true and a session recovery function was set - these are mutually exclusive, so unsetting the latter');
Logger.logAction(Logger.LOG_ERROR, 'Defaults.normaliseOptions', 'closeOnUnload was true and a session recovery function was set - these are mutually exclusive, so unsetting the latter');
options.recover = null;
}

Expand Down

0 comments on commit f60aae1

Please sign in to comment.