docs: add footnote to console

This commit is contained in:
mathuo 2021-03-11 20:24:36 +00:00
parent 9b002ed595
commit 951050e000
2 changed files with 16 additions and 0 deletions

View 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')
);
}

View File

@ -1,3 +1,5 @@
import './footnote';
export * from './splitview/core/splitview';
export * from './splitview/splitviewComponent';
export * from './paneview/paneview';