Subtheme of barrio
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

17 lines
367 B

'use strict';
var nodeVersion = require('./node-version');
function defaultResolution(customResolution) {
var resolution = parseInt(customResolution, 10);
if (resolution) {
return resolution;
}
return (nodeVersion.major === 0 && nodeVersion.minor <= 10) ? 1000 : 1;
}
defaultResolution.nodeVersion = nodeVersion;
module.exports = defaultResolution;