Skip to content

Commit

Permalink
Fix: Defensive Check (fixes: adaptlearning#400) (adaptlearning#401)
Browse files Browse the repository at this point in the history
  • Loading branch information
joe-replin authored Mar 9, 2023
1 parent 2bfaa13 commit c51c0f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/theme.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class Theme extends Backbone.Controller {

addFavIcon() {
const theme = Adapt.course.get('_vanilla');
if (!theme._favIcon._src) return;
if (!theme?._favIcon?._src) return;
const $linkStandard = $(`<link rel="icon" href="${theme._favIcon._src}" size="192x192" />`);
const $linkApple = $(`<link rel="apple-touch-icon" href="${theme._favIcon._src}" />`);
$('head')
Expand Down

0 comments on commit c51c0f8

Please sign in to comment.