not on macs yet

This commit is contained in:
Brandon Thomas committed 2022-03-03 06:13:17 -05:00
1 parent ab021857ab
commit 8500b3fb09
1 file changed
+11 -1
+11 -1
View File
@@ -102,6 +102,14 @@ function newVocodes() {
return discord || twitter || alphaCookie;
}
function isMacOs() {
// Not on macs yet
// https://stackoverflow.com/a/38241481
const platform = window.navigator.platform;
const macPlatforms = ['Macintosh', 'MacIntel', 'MacPPC', 'Mac68K', 'darwin'];
return (macPlatforms.indexOf(platform) !== -1);
}
// TODO: Port to functional component
class App extends React.Component<Props, State> {
@@ -112,6 +120,8 @@ class App extends React.Component<Props, State> {
const migrationMode = enableAlpha ? MigrationMode.NEW_VOCODES : MigrationMode.OLD_VOCODES;
const showTwitchNotice = !isMacOs();
this.state = {
enableAlpha: enableAlpha,
migrationMode: migrationMode,
@@ -125,7 +135,7 @@ class App extends React.Component<Props, State> {
displayLanguage: Language.English,
primaryLanguageCode: 'en',
isShowingTwitchTtsNotice: true,
isShowingTwitchTtsNotice: showTwitchNotice,
ttsInferenceJobs: [],
w2lInferenceJobs: [],