mirror of
https://github.com/jupyter/notebook.git
synced 2025-01-18 11:55:46 +08:00
Protect against no element with id=favicon
This commit is contained in:
parent
0bd5fe8759
commit
5faa2ab9b5
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user