File tree Expand file tree Collapse file tree 2 files changed +8
-12
lines changed
Expand file tree Collapse file tree 2 files changed +8
-12
lines changed Original file line number Diff line number Diff line change @@ -119,13 +119,6 @@ const defaultDocsifyConfig = () => ({
119119 * @returns {DocsifyConfig }
120120 */
121121export default function ( vm , config = { } ) {
122- if ( window . $docsify ) {
123- // eslint-disable-next-line no-console
124- console . warn (
125- 'DEPRECATION: The global $docsify config variable is deprecated. See the latest getting started docs. https://docsify.js.org/#/quickstart' ,
126- ) ;
127- }
128-
129122 config = Object . assign (
130123 defaultDocsifyConfig ( ) ,
131124
Original file line number Diff line number Diff line change @@ -57,12 +57,15 @@ export function Events(Base) {
5757 return ;
5858 }
5959
60- const observer = new IntersectionObserver ( entries => {
61- const isIntersecting = entries [ 0 ] . isIntersecting ;
62- const op = isIntersecting ? 'remove' : 'add' ;
60+ const observer = new IntersectionObserver (
61+ entries => {
62+ const isIntersecting = entries [ 0 ] . isIntersecting ;
63+ const op = isIntersecting ? 'remove' : 'add' ;
6364
64- dom . body . classList [ op ] ( 'sticky' ) ;
65- } ) ;
65+ dom . body . classList [ op ] ( 'sticky' ) ;
66+ } ,
67+ { threshold : 0.01 } ,
68+ ) ;
6669
6770 observer . observe ( coverElm ) ;
6871 }
You can’t perform that action at this time.
0 commit comments