Skip to content
Browse files

Don't show 'undefined' links

  • Loading branch information...
1 parent a287ab4 commit fb68db22771b511a10f12392209676547403aa48 @yuvipanda committed Oct 27, 2011
Showing with 3 additions and 0 deletions.
  1. +3 −0 injector.js
View
3 injector.js
@@ -19,6 +19,9 @@ function doReplace() {
}
function appendLinks(element, data, lang) {
+ if(!data) {
+ return;
+ }
var dataAttrib = "data-wiki-" + lang;
if (! $(element).attr(dataAttrib)) {
$(element).attr(dataAttrib, 'data');

0 comments on commit fb68db2

Please sign in to comment.
Something went wrong with that request. Please try again.