mirror of
https://github.com/mathuo/dockview
synced 2025-05-03 01:58:26 +00:00
docs: add footnote to console
This commit is contained in:
parent
9b002ed595
commit
951050e000
14
packages/splitview/src/footnote.ts
Normal file
14
packages/splitview/src/footnote.ts
Normal file
@ -0,0 +1,14 @@
|
||||
const DOCKVIEW_SUPPRESS_WATERMARK = 'DOCKVIEW_WATERMARK_SUPPRESSED';
|
||||
|
||||
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')
|
||||
);
|
||||
}
|
@ -1,3 +1,5 @@
|
||||
import './footnote';
|
||||
|
||||
export * from './splitview/core/splitview';
|
||||
export * from './splitview/splitviewComponent';
|
||||
export * from './paneview/paneview';
|
||||
|
Loading…
Reference in New Issue
Block a user