Comparing version 4.27.20 to 4.28.0
{ | ||
"name": "tocbot", | ||
"version": "4.27.20", | ||
"version": "4.28.0", | ||
"description": "Generate a table of contents based on the heading structure of a html document.", | ||
@@ -5,0 +5,0 @@ "main": "./dist/tocbot.js", |
@@ -12,3 +12,4 @@ /* eslint no-var: off */ | ||
var some = [].some | ||
var body = document.body | ||
// if (typeof window === 'undefined') return | ||
var body = typeof window !== 'undefined' && document.body | ||
var tocElement | ||
@@ -15,0 +16,0 @@ var currentlyHighlighting = true |
@@ -9,2 +9,3 @@ /* eslint no-var: off */ | ||
var offset = options.offset | ||
if (typeof window === 'undefined' || typeof location === 'undefined') return | ||
@@ -11,0 +12,0 @@ var pageUrl = location.hash |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
112129
28
2116