在iframe中则不请求接口和写入email
This commit is contained in:
@@ -79,6 +79,8 @@ const IframePostMessage = () => {
|
|||||||
*/
|
*/
|
||||||
const fetchAndStoreEmail = async () => {
|
const fetchAndStoreEmail = async () => {
|
||||||
try {
|
try {
|
||||||
|
if (typeof window !== 'undefined' && window.parent !== window)
|
||||||
|
return
|
||||||
const profile = await get<{ email: string }>('/account/profile')
|
const profile = await get<{ email: string }>('/account/profile')
|
||||||
const email = profile?.email || ''
|
const email = profile?.email || ''
|
||||||
if (email) {
|
if (email) {
|
||||||
|
|||||||
Reference in New Issue
Block a user