Fix --startup.project to bypass opening dashboard (#6671)

This commit is contained in:
somebody1234 2023-05-15 21:47:51 +10:00 committed by GitHub
parent 1c89430597
commit 8569ab98c2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -187,7 +187,12 @@ class Main implements AppRunner {
const isOpeningMainEntryPoint =
contentConfig.OPTIONS.groups.startup.options.entry.value ===
contentConfig.OPTIONS.groups.startup.options.entry.default
if ((isUsingAuthentication || isUsingNewDashboard) && isOpeningMainEntryPoint) {
const isNotOpeningProject = contentConfig.OPTIONS.groups.startup.options.entry.value === ''
if (
(isUsingAuthentication || isUsingNewDashboard) &&
isOpeningMainEntryPoint &&
isNotOpeningProject
) {
const hideAuth = () => {
const auth = document.getElementById('dashboard')
const ide = document.getElementById('root')