- AppHeader: 좁은 화면(폰)은 브랜드명 텍스트 숨기고 로고만 → 두 줄 줄바꿈 방지 - 안드로이드 런처 라벨 '돈돼지가계부'(한 줄), 앱 내부 브랜드명은 유지 - Electron: accounts.google.com 팝업을 앱 내부 자식 창으로 열어 GIS 로그인 결과(credential)가 앱 창으로 돌아오게 함(외부 브라우저 X) Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -78,6 +78,11 @@ function createWindow() {
|
||||
|
||||
// 외부(앱 외 도메인) 링크는 기본 브라우저로, 앱 내 링크는 창에서 처리
|
||||
win.webContents.setWindowOpenHandler(({ url }) => {
|
||||
// 구글 로그인(GIS) 팝업은 앱 내부 자식 창으로 열어야 opener 로 로그인 결과(postMessage)가 돌아온다.
|
||||
// 외부 브라우저로 보내면 계정 선택 후 credential 이 앱으로 전달되지 않아 로그인이 끊긴다.
|
||||
if (/^https:\/\/accounts\.google\.com\//i.test(url)) {
|
||||
return { action: 'allow' }
|
||||
}
|
||||
if (/^https?:\/\//i.test(url) && !url.startsWith(APP_URL)) {
|
||||
shell.openExternal(url)
|
||||
return { action: 'deny' }
|
||||
|
||||
@@ -86,6 +86,7 @@ async function handleLogout() {
|
||||
}
|
||||
.brand-text {
|
||||
letter-spacing: -0.01em;
|
||||
white-space: nowrap;
|
||||
}
|
||||
.header-right {
|
||||
display: flex;
|
||||
@@ -103,5 +104,9 @@ async function handleLogout() {
|
||||
.app-header {
|
||||
padding: 0 1rem;
|
||||
}
|
||||
/* 좁은 화면(폰/앱): 브랜드명 텍스트 숨기고 로고만 — 두 줄 줄바꿈 방지 */
|
||||
.brand-text {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user