New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

gitbook-plugin-edit-link

Package Overview
Dependencies
Maintainers
3
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gitbook-plugin-edit-link - npm Package Compare versions

Comparing version

to
2.0.2

9

book/plugin.js

@@ -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": [