mirror of
https://github.com/mathuo/dockview
synced 2025-05-03 10:08:24 +00:00
feat: remove footnote
This commit is contained in:
parent
647945debc
commit
60d49fde61
@ -1,24 +0,0 @@
|
||||
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) {
|
||||
console.log(
|
||||
[
|
||||
'dockview: https://github.com/mathuo/dockview for examples and documentation',
|
||||
'dockview: https://www.npmjs.com/package/dockview',
|
||||
`dockview: To suppress this message set window.${DOCKVIEW_SUPPRESS_WATERMARK}=1 before importing the dockview package`,
|
||||
'',
|
||||
].join('\n')
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
runFootnote();
|
@ -1,5 +1,3 @@
|
||||
import './footnote';
|
||||
|
||||
export * from './events';
|
||||
export * from './lifecycle';
|
||||
export * from './dnd/dataTransfer';
|
||||
|
Loading…
Reference in New Issue
Block a user