Fix no sauce from breaking 4chan X. Close #61
This commit is contained in:
parent
0ecf9193d1
commit
28a4761d1b
@ -2231,7 +2231,7 @@
|
|||||||
|
|
||||||
sauce = {
|
sauce = {
|
||||||
init: function() {
|
init: function() {
|
||||||
sauce.prefixes = conf['flavors'].match(/^[^#].+$/gm);
|
if (!(sauce.prefixes = conf['flavors'].match(/^[^#].+$/gm)).length) return;
|
||||||
sauce.names = sauce.prefixes.map(function(prefix) {
|
sauce.names = sauce.prefixes.map(function(prefix) {
|
||||||
return prefix.match(/(\w+)\./)[1];
|
return prefix.match(/(\w+)\./)[1];
|
||||||
});
|
});
|
||||||
|
|||||||
@ -1,4 +1,6 @@
|
|||||||
master
|
master
|
||||||
|
- mayhem
|
||||||
|
fix empty sauce or all flavors commented out from breaking 4chan X
|
||||||
|
|
||||||
2.23.5
|
2.23.5
|
||||||
- mayhem
|
- mayhem
|
||||||
|
|||||||
@ -1790,7 +1790,7 @@ anonymize =
|
|||||||
|
|
||||||
sauce =
|
sauce =
|
||||||
init: ->
|
init: ->
|
||||||
sauce.prefixes = conf['flavors'].match /^[^#].+$/gm
|
return unless (sauce.prefixes = conf['flavors'].match /^[^#].+$/gm).length
|
||||||
sauce.names = sauce.prefixes.map (prefix) -> prefix.match(/(\w+)\./)[1]
|
sauce.names = sauce.prefixes.map (prefix) -> prefix.match(/(\w+)\./)[1]
|
||||||
g.callbacks.push (root) ->
|
g.callbacks.push (root) ->
|
||||||
return if root.className is 'inline' or not span = $ '.filesize', root
|
return if root.className is 'inline' or not span = $ '.filesize', root
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user