Added donation link to HTML response pages

pull/69/head
Thomas Buckley-Houston 2018-07-06 13:43:53 +08:00
rodzic 7f8893fe14
commit 1a6fa690f5
2 zmienionych plików z 6 dodań i 3 usunięć

Wyświetl plik

@ -77,7 +77,7 @@ Then the ideal setup for development is:
For the webextension: in `webext/` folder, `npm test`
For CLI unit tests: in `/interfacer` run `go test src/browsh/*.go`
For CLI E2E tests: in `/interfacer` run `go test test/tty/*.go`
FOr HTTP Service tests: in `/interfacer` run `go test test/http-server/*.go`
For HTTP Service tests: in `/interfacer` run `go test test/http-server/*.go`
## Special Thanks
* [@tobimensch](https://github.com/tobimensch) For essential early feedback and user testing.

Wyświetl plik

@ -52,11 +52,14 @@ export default (MixinBase) => class extends MixinBase {
const date_time = this._getCurrentDataTime();
const elapsed = `${performance.now() - this._raw_text_start}ms`;
info += "\n\n" + `Built by <a href="https://www.brow.sh">Browsh</a> ` +
`on ${date_time} in ${elapsed}`;
`on ${date_time} in ${elapsed}.`;
if (this.dimensions.is_page_truncated) {
info += '\nBrowsh parser: the page was too large, some text may have been truncated.';
}
const foot = `<span class="browsh-footer">${info}</span></pre></body></html>`;
const donate = '\nPlease consider <a href="https://www.brow.sh/donate/">donating</a> ' +
'to help all those with slow and/or expensive internet.';
const foot = `<span class="browsh-footer">${info}${donate}</span></pre></body></html>`;
return head + raw_text + foot;
}