mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-05 17:58:55 +00:00
not on macs yet
This commit is contained in:
1 parent
ab021857ab
commit
8500b3fb09
1 file changed
+11
-1
@@ -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: [],
|
||||
|
||||
Reference in new issue
Block a user