drop.chapril.org-firefoxsend/app/templates/header/index.js
2018-08-03 16:11:13 -07:00

15 lines
390 B
JavaScript

const html = require('choo/html');
module.exports = function() {
const header = html`
<header class="header">
</header>`;
// HACK
// We only want to render this once because we
// toggle the targets of the links with utils/openLinksInNewTab
header.isSameNode = function(target) {
return target && target.nodeName && target.nodeName === 'HEADER';
};
return header;
};