From f004f2e35322707a7adbb9cfdfb06a8e90a76fd7 Mon Sep 17 00:00:00 2001 From: ccd0 Date: Thu, 25 Jan 2018 00:06:00 -0800 Subject: [PATCH] Fix webm_audio undefined error shown on first install of script. #1778 --- src/General/BoardConfig.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/General/BoardConfig.coffee b/src/General/BoardConfig.coffee index 3e854ab87..32f6d3f73 100644 --- a/src/General/BoardConfig.coffee +++ b/src/General/BoardConfig.coffee @@ -45,7 +45,7 @@ BoardConfig = noAudio: (boardID) -> return false unless Site.software is 'yotsuba' boards = @boards or Conf['boardConfig'].boards - boards and !boards[boardID].webm_audio + boards and boards[boardID] and !boards[boardID].webm_audio title: (boardID) -> (@boards or Conf['boardConfig'].boards)?[boardID]?.title or ''