mirror of
https://github.com/rkd77/elinks.git
synced 2024-12-04 14:46:47 -05:00
SMJS: mangle_deb_bugnumbers: fix horrible error
Use cached.type instead of cached.content_type so that the script works again.
This commit is contained in:
parent
db9768963f
commit
8d91c501a6
@ -56,7 +56,7 @@ function mangle_deb_bugnumbers(cached, vs) {
|
||||
var closes_re = /closes:\s*(?:bug)?\#?\s?\d+(?:,\s*(?:bug)?\#?\s?\d+)*/gi;
|
||||
|
||||
var new_content = cached.content.replace(closes_re, rewrite_closes_fn);
|
||||
if (cached.content_type == 'text/plain') {
|
||||
if (cached.type == 'text/plain') {
|
||||
cached.content = '<pre>' + new_content + '</pre>';
|
||||
vs.plain = "0";
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user