Initial commit
This commit is contained in:
6
theme/helpers/aspect.js
Normal file
6
theme/helpers/aspect.js
Normal file
@@ -0,0 +1,6 @@
|
||||
module.exports = (width, height) => {
|
||||
if (width <0 || !width || height < 0 || !height) {
|
||||
return null;
|
||||
}
|
||||
return width/height;
|
||||
};
|
||||
Reference in New Issue
Block a user