diff --git a/src/app/filters-page.js b/src/app/filters-page.js index 653e2b6..bb2710f 100644 --- a/src/app/filters-page.js +++ b/src/app/filters-page.js @@ -16,12 +16,12 @@ export default class ConfigPage extends Page { this.setTitle('Rats filters'); this.options = {} this.basicTypes = ['video', - 'audio', - 'pictures', - 'books', - 'application', - 'archive', - 'disc'] + 'audio', + 'pictures', + 'books', + 'application', + 'archive', + 'disc'] this.contentType = this.basicTypes.slice(0) this.descriptions = { main: __('All'), @@ -190,28 +190,28 @@ export default class ConfigPage extends Page { }
-
{__('disable some categories')}:
- { - this.basicTypes.map(type => (= 0} - onCheck={e => { - if(e.target.checked) - { - this.contentType.push(type) - } - else - { - const index = this.contentType.indexOf(type) - this.contentType.splice(index, 1) - } - if(this.contentType.length == 0) - this.contentType = this.basicTypes.slice(0) +
{__('disable some categories')}:
+ { + this.basicTypes.map(type => (= 0} + onCheck={e => { + if(e.target.checked) + { + this.contentType.push(type) + } + else + { + const index = this.contentType.indexOf(type) + this.contentType.splice(index, 1) + } + if(this.contentType.length == 0) + this.contentType = this.basicTypes.slice(0) - this.forceUpdate() - }} - />)) - } + this.forceUpdate() + }} + />)) + }
{ diff --git a/src/background/api.js b/src/background/api.js index 6f56d29..8c75652 100644 --- a/src/background/api.js +++ b/src/background/api.js @@ -891,6 +891,10 @@ module.exports = async ({ // store torrent to feed await feed.load() + Object.defineProperty(p2p.info, 'feed', { + enumerable: true, + get: () => feed.size() + }); p2pStore.on('store', async ({data: record, temp, myself}) => { if(record.type !== 'vote') return