biofriction-wp-theme/node_modules/default-resolution/index.js

18 lines
367 B
JavaScript
Raw Normal View History

2021-10-26 14:18:09 +02:00
'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;