@@ -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