Fix webm_audio undefined error shown on first install of script. #1778

This commit is contained in:
ccd0 2018-01-25 00:06:00 -08:00
parent e0774410dd
commit f004f2e353

View File

@ -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 ''