mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-02 23:07:39 +02:00
[ticket/15769] Fix eslint complaints
PHPBB3-15769
This commit is contained in:
@@ -161,8 +161,7 @@
|
|||||||
*/
|
*/
|
||||||
onCrop(event) {
|
onCrop(event) {
|
||||||
const data = phpbb.avatars.$data.data();
|
const data = phpbb.avatars.$data.data();
|
||||||
let width = event.detail.width;
|
let { width, height } = event.detail;
|
||||||
let height = event.detail.height;
|
|
||||||
|
|
||||||
if (width < data.minWidth || height < data.minHeight) {
|
if (width < data.minWidth || height < data.minHeight) {
|
||||||
width = Math.max(data.minWidth, Math.min(data.maxWidth, width));
|
width = Math.max(data.minWidth, Math.min(data.maxWidth, width));
|
||||||
|
Reference in New Issue
Block a user