Commit e53edca084bc70ef3f036ee0684009ae71da41df
disable message.html.render fallback
Matt McKegg committed on 2/17/2017, 1:14:26 PMParent: 004f2ddc8ef2642ade2793f2479573826aaae30b
Files changed
main-window.js | changed |
overrides/index.js | added |
overrides/patchcore/message/html/render/zzz-fallback.js | added |
main-window.js | ||
---|---|---|
@@ -16,10 +16,12 @@ | ||
16 | 16 | var sockets = combine( |
17 | 17 | overrideConfig(config), |
18 | 18 | require('./modules'), |
19 | 19 | require('./plugs'), |
20 | - require('patchcore') | |
20 | + require('patchcore'), | |
21 | + require('./overrides') | |
21 | 22 | ) |
23 | + | |
22 | 24 | var api = entry(sockets, nest({ |
23 | 25 | 'page.html.render': 'first', |
24 | 26 | 'keys.sync.id': 'first' |
25 | 27 | })) |
overrides/index.js | ||
---|---|---|
@@ -1,0 +1,1 @@ | ||
1 | +module.exports = require('bulk-require')(__dirname, ['**/!(index).js']) |
overrides/patchcore/message/html/render/zzz-fallback.js | ||
---|---|---|
@@ -1,0 +1,17 @@ | ||
1 | +var h = require('mutant/h') | |
2 | +var nest = require('depnest') | |
3 | +var extend = require('xtend') | |
4 | + | |
5 | +exports.needs = nest({ | |
6 | + 'message.html': { | |
7 | + decorate: 'reduce', | |
8 | + layout: 'first' | |
9 | + } | |
10 | +}) | |
11 | + | |
12 | +exports.gives = nest('message.html.render') | |
13 | + | |
14 | +exports.create = function (api) { | |
15 | + // no fallback | |
16 | + return nest('message.html.render', () => null) | |
17 | +} |
Built with git-ssb-web