Skip to content
This repository was archived by the owner on Jul 2, 2024. It is now read-only.

Commit 33d2121

Browse files
committed
fix: guide 탭이 크롬 업데이트 시 출력되는 문제 수정 (#49)
1 parent dac9139 commit 33d2121

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

frontend/src/background.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,11 @@ function registUser() {
2727
});
2828
}
2929

30-
browser.runtime.onInstalled.addListener(() => {
30+
browser.runtime.onInstalled.addListener((details) => {
31+
// 초기 설치 시에만 실행
32+
if (details.reason !== "install") {
33+
return;
34+
}
3135
// whale 브라우저에서는 identity api 지원 중단으로 인해 예외처리 필요
3236
if (!globalThis.whale) {
3337
browser.identity.getProfileUserInfo(function (userInfo) {

0 commit comments

Comments
 (0)