Skip to content

Commit

Permalink
fix: change includes function for IE
Browse files Browse the repository at this point in the history
  • Loading branch information
lja1018 committed Jun 4, 2021
1 parent 57a2755 commit c53ad07
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions apps/image-editor/src/js/action.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { extend } from 'tui-code-snippet';
import Imagetracer from '@/helper/imagetracer';
import { isSupportFileApi, base64ToBlob, toInteger, isEmptyCropzone } from '@/util';
import { isSupportFileApi, base64ToBlob, toInteger, isEmptyCropzone, includes } from '@/util';
import { eventNames, historyNames, drawingModes, drawingMenuNames, zoomModes } from '@/consts';

export default {
Expand Down Expand Up @@ -420,7 +420,7 @@ export default {
const calcAspectRatio = () => currentDimensions.width / currentDimensions.height;

let dimensions = {};
switch(actor) {
switch (actor) {
case 'width':
dimensions.width = value;
if (lockState) {
Expand Down Expand Up @@ -651,7 +651,7 @@ export default {
this.activeObjectId = null;
if (this.ui.submenu === 'text') {
this.changeCursor('text');
} else if (!['draw', 'crop', 'resize'].includes(this.ui.submenu)) {
} else if (!includes(['draw', 'crop', 'resize'], this.ui.submenu)) {
this.stopDrawingMode();
}
},
Expand Down

0 comments on commit c53ad07

Please sign in to comment.