Skip to content

Commit

Permalink
remove default content (facebook#1738)
Browse files Browse the repository at this point in the history
  • Loading branch information
acywatson authored Apr 14, 2022
1 parent 35701c3 commit bd86322
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions packages/lexical-playground/src/appSettings.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,14 @@ export type SettingName =

export type Settings = {[SettingName]: boolean};

const hostName = window.location.hostname;
export const isDevPlayground: boolean =
hostName !== 'playground.lexical.dev' &&
hostName !== 'lexical-playground.vercel.app';

export const DEFAULT_SETTINGS: Settings = {
disableBeforeInput: false,
emptyEditor: false,
emptyEditor: isDevPlayground,
isAutocomplete: false,
isCharLimit: false,
isCharLimitUtf8: false,
Expand All @@ -33,9 +38,3 @@ export const DEFAULT_SETTINGS: Settings = {
showNestedEditorTreeView: false,
showTreeView: true,
};

const hostName = window.location.hostname;

export const isDevPlayground: boolean =
hostName !== 'playground.lexical.dev' &&
hostName !== 'lexical-playground.vercel.app';

0 comments on commit bd86322

Please sign in to comment.