Skip to content

Commit 1ab9566

Browse files
authored
Merge branch 'develop' into dependabot/npm_and_yarn/test/consume-types/node-forge-1.3.3
2 parents c575023 + 72b21d1 commit 1ab9566

File tree

2 files changed

+8
-12
lines changed

2 files changed

+8
-12
lines changed

src/core/config.js

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -119,13 +119,6 @@ const defaultDocsifyConfig = () => ({
119119
* @returns {DocsifyConfig}
120120
*/
121121
export 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

src/core/event/index.js

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)