Skip to content

Commit b135cd8

Browse files
committed
remove console.log
1 parent 686ad76 commit b135cd8

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "gitbook-plugin-jsfiddle",
33
"description": "JSFiddle Integration into GitBook",
44
"main": "index.js",
5-
"version": "1.0.0-alpha.8",
5+
"version": "1.0.0-beta.0",
66
"author": {
77
"name": "Konstantin Krivlenia"
88
},

src/plugin.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,9 @@ require(["gitbook", "jquery"], function (gitbook, $) {
2727
params += config.theme + '/';
2828
}
2929
var colors = Object.keys(config).reduce(function (colors, key) {
30-
3130
if (['href', 'type', 'theme', 'tabs', 'width', 'height'].indexOf(key) !== -1) {
3231
return colors;
3332
}
34-
3533
colors += key + '=' + config[key] + '&';
3634
return colors;
3735
}, '');
@@ -45,7 +43,6 @@ require(["gitbook", "jquery"], function (gitbook, $) {
4543

4644
var generateUrl = function (config) {
4745
var additionalParam = generateAdditionalParams(config);
48-
console.log(additionalParam);
4946
var type = config.type == 'frame' ? 'embedded' : 'embed';
5047
return config.href + type + '/' + config.tabs.join(',') + additionalParam;
5148
};
@@ -81,7 +78,6 @@ require(["gitbook", "jquery"], function (gitbook, $) {
8178

8279
function embedAllLink(config) {
8380
localConfig.jsfiddle = $.extend(localConfig.jsfiddle || {}, config.jsfiddle);
84-
8581
$(".book-body a").each(function (index, link) {
8682
if (link.href && matcher.test(link.href)) {
8783
link.parentNode.insertBefore(createEmbedNode(link.href, localConfig.jsfiddle), link.nextSibling);

0 commit comments

Comments
 (0)