Skip to content

Commit

Permalink
typeof returns string
Browse files Browse the repository at this point in the history
  • Loading branch information
yomotsu committed Sep 7, 2020
1 parent 63f0289 commit e26c133
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/CameraControls.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import { extractClientCoordFromEvent } from './utils/extractClientCoordFromEvent
import { notSupportedInOrthographicCamera } from './utils/notSupportedInOrthographicCamera';
import { EventDispatcher, Listener } from './EventDispatcher';

const isBrowser = typeof window !== void 0;
const isBrowser = typeof window !== 'undefined';
const isMac = isBrowser && /Mac/.test( navigator.platform );
const readonlyACTION = Object.freeze( ACTION );
const TOUCH_DOLLY_FACTOR = 1 / 8;
Expand Down

0 comments on commit e26c133

Please sign in to comment.