fix: Avoid double popups
This commit is contained in:
@@ -42,7 +42,9 @@ const isReferredFromMermaid = (): boolean => {
|
|||||||
hostname === 'mermaid.ai' ||
|
hostname === 'mermaid.ai' ||
|
||||||
hostname.endsWith('.mermaid.ai') ||
|
hostname.endsWith('.mermaid.ai') ||
|
||||||
hostname === 'mermaid.js.org' ||
|
hostname === 'mermaid.js.org' ||
|
||||||
hostname.endsWith('.mermaid.js.org')
|
hostname.endsWith('.mermaid.js.org') ||
|
||||||
|
hostname === 'mermaid.live' ||
|
||||||
|
hostname.endsWith('.mermaid.live')
|
||||||
);
|
);
|
||||||
} catch {
|
} catch {
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
Reference in New Issue
Block a user