don't handle empty string from pref as valid background image; r=timeless, sr=jag; bug 207501

This commit is contained in:
brade%netscape.com 2003-05-30 13:36:48 +00:00
Родитель 61059074b0
Коммит aa7d697586
1 изменённых файлов: 2 добавлений и 1 удалений

Просмотреть файл

@ -2556,7 +2556,8 @@ function EditorSetDefaultPrefsAndDoctype()
// Default image is independent of Custom colors???
try {
var background_image = gPrefs.getCharPref("editor.default_background_image");
editor.setAttributeOrEquivalent(bodyelement, "background", background_image, true);
if (background_image)
editor.setAttributeOrEquivalent(bodyelement, "background", background_image, true);
} catch (e) {dump("BACKGROUND EXCEPTION: "+e+"\n"); }
}