File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 1+ var path = require ( "path" ) ;
12var urlJoin = require ( "url-join" ) ;
23var BugReporter = require ( "./BugReporter" ) ;
34var findAllPositions = require ( "position-map-text-to-markdown" ) . findAllPositions ;
@@ -51,7 +52,7 @@ window.require(["gitbook"], function(gitbook) {
5152 reportElement . setAttribute ( "style" , "position:fixed; right:0;bottom:0;" ) ;
5253 var clickEvent = ( "ontouchstart" in window ) ? "touchend" : "click" ;
5354 reportElement . addEventListener ( clickEvent , function ( event ) {
54- var pathname = urlJoin ( gitbook . state . config . root , gitbook . state . filepath ) ;
55+ var pathname = path . join ( gitbook . state . config . root , gitbook . state . filepath ) ;
5556 var apiURL = getAPIURL ( config , pathname ) ;
5657 var resourceURL = getResourceURL ( config , pathname , "master" ) ;
5758 var editURL = getEditURL ( config , gitbook . state . filepath , "master" ) ;
You can’t perform that action at this time.
0 commit comments