gitbook-plugin-edit-link
Advanced tools
Comparing version
@@ -6,3 +6,10 @@ require(["gitbook", "jQuery"], function(gitbook, $) { | ||
var base = conf.base; | ||
var lang = gitbook.state.innerLanguage; | ||
if (lang) { | ||
// label can be a unique string for multi-languages site | ||
if (typeof label === 'object') label = label[lang]; | ||
lang = lang + '/'; | ||
} | ||
// Add slash at the end if not present | ||
@@ -18,4 +25,2 @@ if (base.slice(-1) != "/") { | ||
var filepath = gitbook.state.filepath; | ||
var lang = gitbook.state.innerLanguage; | ||
if (lang) lang = lang + '/'; | ||
@@ -22,0 +27,0 @@ window.open(base + lang + filepath); |
@@ -5,3 +5,3 @@ { | ||
"main": "index.js", | ||
"version": "2.0.1", | ||
"version": "2.0.2", | ||
"author": "rtCamp <admin@rtcamp.com>", | ||
@@ -8,0 +8,0 @@ "contributors": [ |
18127
0.79%31
14.81%