@@ -12,17 +12,16 @@ module.exports = {
12
12
if ( type === 'body' ) {
13
13
return `
14
14
<script type='text/javascript'>
15
- let hash = window.location.hash;
15
+ var hash = window.location.hash;
16
16
if (hash && hash.length > 1) {
17
- let pathName = window.location.pathname;
18
- console.log(pathName);
19
- if (!pathName.includes('/methods/') &&
20
- !pathName.includes('/properties/') &&
21
- !pathName.includes('/events/')) {
22
- let type = hash.slice(1, hash.indexOf('_'));
23
- let name = hash.slice(hash.indexOf('_') + 1, hash.length);
24
- let anchor = '?anchor=' + name + '&show=inherited,protected,private,deprecated';
25
- let newPath = pathName;
17
+ var pathName = window.location.pathname;
18
+ if (pathName.indexOf('/methods/') === -1 &&
19
+ pathName.indexOf('/properties/') === -1 &&
20
+ pathName.indexOf('/events/') === -1) {
21
+ var type = hash.slice(1, hash.indexOf('_'));
22
+ var name = hash.slice(hash.indexOf('_') + 1, hash.length);
23
+ var anchor = '?anchor=' + name + '&show=inherited,protected,private,deprecated';
24
+ var newPath = pathName;
26
25
if (type === 'method') {
27
26
newPath = pathName + '/methods/' + name;
28
27
} else if (type === 'property') {
0 commit comments