diff --git a/builds/appchan-x.user.js b/builds/appchan-x.user.js index b6d7eb662..83aabb236 100644 --- a/builds/appchan-x.user.js +++ b/builds/appchan-x.user.js @@ -6741,7 +6741,9 @@ var err, key, link, options, service, title, titles, uid; key = data[0], uid = data[1], options = data[2], link = data[3]; - service = Linkify.types[key].title; + if (!(service = Linkify.types[key].title)) { + return; + } titles = Conf['CachedTitles']; if (title = titles[uid]) { link.textContent = title[0]; diff --git a/builds/crx/script.js b/builds/crx/script.js index 7a1a5e8aa..0814a0d56 100644 --- a/builds/crx/script.js +++ b/builds/crx/script.js @@ -6744,7 +6744,9 @@ var err, key, link, options, service, title, titles, uid; key = data[0], uid = data[1], options = data[2], link = data[3]; - service = Linkify.types[key].title; + if (!(service = Linkify.types[key].title)) { + return; + } titles = Conf['CachedTitles']; if (title = titles[uid]) { link.textContent = title[0]; diff --git a/src/Linkification/Linkify.coffee b/src/Linkification/Linkify.coffee index 1829b30c5..4938a532c 100644 --- a/src/Linkification/Linkify.coffee +++ b/src/Linkification/Linkify.coffee @@ -152,7 +152,7 @@ Linkify = title: (data) -> [key, uid, options, link] = data - service = Linkify.types[key].title + return unless service = Linkify.types[key].title titles = Conf['CachedTitles'] if title = titles[uid] link.textContent = title[0]