diff --git a/src/core.js b/src/core.js index 751289010..bf4e59b56 100644 --- a/src/core.js +++ b/src/core.js @@ -92,7 +92,7 @@ export default class Base extends EventEmitter { const getScreenTitle = (m) => { // if it is the first screen and the flag is enabled, it should hide the title - return l.ui.hideFistPageTitle(m) && screen.isFirstScreen(m) + return l.ui.hideMainScreenTitle(m) && screen.isFirstScreen(m) ? null : title; } diff --git a/src/core/index.js b/src/core/index.js index aae5d202f..25693fad3 100644 --- a/src/core/index.js +++ b/src/core/index.js @@ -124,7 +124,7 @@ export function stopRendering(m) { function extractUIOptions(id, options) { const closable = options.container ? false : undefined === options.closable ? true : !!options.closable; const theme = options.theme || {}; - const { labeledSubmitButton, hideFistPageTitle, logo, primaryColor, authButtons } = theme; + const { labeledSubmitButton, hideMainScreenTitle, logo, primaryColor, authButtons } = theme; const avatar = options.avatar !== null; const customAvatarProvider = options.avatar @@ -142,7 +142,7 @@ function extractUIOptions(id, options) { avatarProvider: avatarProvider, logo: typeof logo === "string" ? logo : undefined, closable: closable, - hideFistPageTitle: !!hideFistPageTitle, + hideMainScreenTitle: !!hideMainScreenTitle, labeledSubmitButton: undefined === labeledSubmitButton ? true : !!labeledSubmitButton, language: undefined === options.language ? "en" : trim(options.language || "").toLowerCase(), dict: typeof options.languageDictionary === "object" ? options.languageDictionary : {}, @@ -180,7 +180,7 @@ export const ui = { dict: lock => getUIAttribute(lock, "dict"), disableWarnings: lock => getUIAttribute(lock, "disableWarnings"), labeledSubmitButton: lock => getUIAttribute(lock, "labeledSubmitButton"), - hideFistPageTitle: lock => getUIAttribute(lock, "hideFistPageTitle"), + hideMainScreenTitle: lock => getUIAttribute(lock, "hideMainScreenTitle"), language: lock => getUIAttribute(lock, "language"), logo: lock => getUIAttribute(lock, "logo"), mobile: lock => getUIAttribute(lock, "mobile"),