Skip to content

Commit

Permalink
Check both chrome and Chrome
Browse files Browse the repository at this point in the history
  • Loading branch information
oandregal committed Sep 3, 2018
1 parent d042701 commit 24241c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/components/src/draggable/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const cloneWrapperClass = 'components-draggable__clone';
const cloneHeightTransformationBreakpoint = 700;
const clonePadding = 20;

const isChromeUA = ( ) => /Chrome/.test( window.navigator.userAgent );
const isChromeUA = ( ) => /Chrome/i.test( window.navigator.userAgent );
const documentHasIframes = ( ) => [ ...document.getElementById( 'editor' ).querySelectorAll( 'iframe' ) ].length > 0;

class Draggable extends Component {
Expand Down

0 comments on commit 24241c7

Please sign in to comment.