Skip to content

Commit 3291b88

Browse files
committed
fix: document.currentScript reference
1 parent 90a35ab commit 3291b88

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/core/config.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
import {merge, hyphenate, isPrimitive, hasOwn} from './util/core'
22

3+
const currentScript = document.currentScript
4+
35
export default function () {
46
const config = merge(
57
{
@@ -36,7 +38,7 @@ export default function () {
3638
)
3739

3840
const script =
39-
document.currentScript ||
41+
currentScript ||
4042
[].slice
4143
.call(document.getElementsByTagName('script'))
4244
.filter(n => /docsify\./.test(n.src))[0]

0 commit comments

Comments
 (0)