1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-09-26 02:46:13 -04: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:
Miciah Dashiel Butler Masters 2006-01-30 15:42:58 +00:00 committed by Miciah Dashiel Butler Masters
parent db9768963f
commit 8d91c501a6

View File

@ -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 {