diff --git a/notebook/static/base/js/utils.js b/notebook/static/base/js/utils.js index af1ad2d7a..c744265a6 100644 --- a/notebook/static/base/js/utils.js +++ b/notebook/static/base/js/utils.js @@ -1103,7 +1103,7 @@ define([ link.type = 'image/x-icon'; link.rel = 'shortcut icon'; link.href = utils.url_path_join(utils.get_body_data('baseUrl'), src); - if (link.href === oldLink.href) { + if (oldLink && (link.href === oldLink.href)) { // This favicon is already set, don't modify the DOM. return; }