2017-11-07 23:54:42 +00:00
|
|
|
const html = require('choo/html');
|
2018-10-16 23:53:33 +00:00
|
|
|
const assets = require('../../../common/assets');
|
2018-02-16 20:56:53 +00:00
|
|
|
|
2018-10-16 23:53:33 +00:00
|
|
|
module.exports = function() {
|
2018-03-12 17:15:11 +00:00
|
|
|
const header = html`
|
|
|
|
<header class="header">
|
2018-10-16 23:53:33 +00:00
|
|
|
<a href="/"><img src="${assets.get('send_logo.svg')}"/></a>
|
|
|
|
<a href="/"><h1>Firefox Send</h1></a>
|
2018-03-12 17:15:11 +00:00
|
|
|
</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;
|
2018-02-16 20:56:53 +00:00
|
|
|
};
|