UNPKG
esxdoc
Version:
latest (0.0.1)
0.0.1
Good Documentation Generator For JavaScript
esdoc.org
ratson/esxdoc
esxdoc
/
out
/
src
/
Publisher
/
Builder
/
template
/
script
/
patch-for-local.js
9 lines
(8 loc)
•
207 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
(
function
(
){
if
(location.
protocol
===
'file:'
) {
var
elms =
document
.
querySelectorAll
(
'a[href="./"]'
);
for
(
var
i =
0
; i < elms.
length
; i++) { elms[i].
href
=
'./index.html'
; } } })();