Skip to content

Commit 6df5689

Browse files
siddharthkpCompuIves
authored andcommitted
remove mobile logic for run on click (codesandbox#3095)
1 parent a4513fb commit 6df5689

File tree

1 file changed

+1
-16
lines changed
  • packages/app/src/embed/components/App

1 file changed

+1
-16
lines changed

packages/app/src/embed/components/App/index.js

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -50,15 +50,6 @@ type State = {
5050
theme: string,
5151
};
5252

53-
const isSafari = () => {
54-
const ua = navigator.userAgent.toLowerCase();
55-
if (ua.includes('safari')) {
56-
return !ua.includes('chrome');
57-
}
58-
59-
return false;
60-
};
61-
6253
export default class App extends React.PureComponent<
6354
{
6455
id?: string,
@@ -115,13 +106,7 @@ export default class App extends React.PureComponent<
115106
hideDevTools,
116107
tabs,
117108
theme,
118-
runOnClick:
119-
runOnClick === false
120-
? false
121-
: runOnClick ||
122-
navigator.appVersion.includes('X11') ||
123-
navigator.appVersion.includes('Linux') ||
124-
isSafari(),
109+
runOnClick,
125110
verticalMode,
126111
highlightedLines: highlightedLines || [],
127112
};

0 commit comments

Comments
 (0)