Fixed JS Console Error in the Wallpaper Picker App when selecting a custom wallpaper

BUG=282303

Review URL: https://chromiumcodereview.appspot.com/23820003

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@220609 0039d316-1c4b-4281-b951-d872f2087c98
parent b345c488
......@@ -615,7 +615,7 @@ function WallpaperManager(dialogDom) {
* @private
*/
WallpaperManager.prototype.setWallpaperAttribution_ = function(selectedItem) {
if (selectedItem) {
if (selectedItem && selectedItem.source != 'ADDNEW') {
$('author-name').textContent = selectedItem.author;
$('author-website').textContent = $('author-website').href =
selectedItem.authorWebsite;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment