Had the same problem. I think it might be browser specific, but I’m not exactly familiar with JS; just applying my programming knowledge.
in js/gallery.js I changed line 41:
a.tg = tag(‘a’,h)[0]? tag(‘a’,h)[0].target:’_self’;
to:
a.tg = tag(‘a’,h)[0] != ” ? tag(‘a’,h)[0].target:’_self’;
It seems to work. I didn’t do much testing though.