From: Andrew Dolgov Date: Mon, 23 Apr 2007 13:45:24 +0000 (+0100) Subject: do not call correctPNG() when undefined X-Git-Tag: schema_freeze_for_1.2.11~101 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=23943c9b7e6d1b49e269991752272052c4e88721;p=tt-rss.git do not call correctPNG() when undefined --- diff --git a/prefs.js b/prefs.js index ab8953bd..60a7e1b1 100644 --- a/prefs.js +++ b/prefs.js @@ -42,7 +42,9 @@ function feedlist_callback() { caller_subop = false; } - correctPNG(); + if (typeof correctPNG != 'undefined') { + correctPNG(); + } notify(""); } catch (e) { exception_error("feedlist_callback", e); @@ -54,7 +56,9 @@ function filterlist_callback() { var container = document.getElementById('prefContent'); if (xmlhttp.readyState == 4) { container.innerHTML=xmlhttp.responseText; - correctPNG(); + if (typeof correctPNG != 'undefined') { + correctPNG(); + } notify(""); } } @@ -77,7 +81,9 @@ function labellist_callback() { checkbox.checked = true; } } - correctPNG(); + if (typeof correctPNG != 'undefined') { + correctPNG(); + } notify(""); } }