Skip to content

Commit 4bb9498

Browse files
committed
fix: document.currentScript reference
1 parent 676f84c commit 4bb9498

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
{
@@ -32,7 +34,7 @@ export default function () {
3234
)
3335

3436
const script =
35-
document.currentScript ||
37+
currentScript ||
3638
[].slice
3739
.call(document.getElementsByTagName('script'))
3840
.filter(n => /docsify\./.test(n.src))[0]

0 commit comments

Comments
 (0)