var getData = require('../get-data');
var Templates = require('../../templates');

module.exports = function (ctx) {
  var wikiImage = document.getElementById('wikiImage');
  if (wikiImage) {
    var url = '/wiki/' + wikiImage.dataset.name;
    var opts = {
      headers: { Accept: 'application/vnd.api+json' }
    };

    getData(url, opts, function (err, data) {
      if (err) {
      } else if (data.mainImage) {
        wikiImage.innerHTML = Templates['wikiImage'](data);
      }
    });
  }
};

@@ -346,16 +346,17 @@
 nction (
+_
 err, dat
@@ -373,32 +373,8 @@
  if 
-(err) %7B%0A      %7D else if 
 (dat

remove unused error line in get-wiki-data