src/block/edit.js
// Validate the icon in formatted correctly
Validate the icon in formatted correctly
Validate the icon in formatted correctly
validateIcon( icon ) {
		if (
			icon.mime !== 'image/png' ||
			icon.height > 100 ||
			icon.width > 100
		) {
			return false;
		}
		return true;
	}
validateIcon ( icon ) { if ( icon . mime !== 'image/png' || icon . height > 100 || icon . width > 100 ) { return false ; } return true ; }
Validate the icon in formatted correctly
Validate the icon in formatted correctly