mirror of
https://github.com/dreamhunter2333/cloudflare_temp_email.git
synced 2026-09-05 23:47:50 +08:00
feat: add telegram mini app (#250)
This commit is contained in:
@@ -68,6 +68,8 @@ export const useGlobalState = createGlobalState(
|
||||
/** @type {number} */
|
||||
user_id: 0,
|
||||
});
|
||||
const telegramApp = ref(window.Telegram?.WebApp || {});
|
||||
const isTelegram = ref(!!window.Telegram?.WebApp?.initData);
|
||||
return {
|
||||
isDark,
|
||||
toggleDark,
|
||||
@@ -95,6 +97,8 @@ export const useGlobalState = createGlobalState(
|
||||
userSettings,
|
||||
globalTabplacement,
|
||||
useSideMargin,
|
||||
telegramApp,
|
||||
isTelegram,
|
||||
}
|
||||
},
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user