mirror of
https://github.com/mathuo/dockview
synced 2025-09-11 19:58:16 +00:00
fix: hide footnode in test environments
This commit is contained in:
parent
ca70217b62
commit
24c98c5830
@ -1,6 +1,12 @@
|
||||
function runFootnote() {
|
||||
const DOCKVIEW_SUPPRESS_WATERMARK = 'DOCKVIEW_WATERMARK_SUPPRESSED';
|
||||
|
||||
const isTest = (window as any).process?.env?.NODE_ENV === 'test';
|
||||
|
||||
if (isTest) {
|
||||
return; // don't spam people tests
|
||||
}
|
||||
|
||||
const isSuppressed = !!(window as any)[DOCKVIEW_SUPPRESS_WATERMARK];
|
||||
|
||||
if (!isSuppressed) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user