Don't hang the site if a mod doesn't load

This commit is contained in:
Andrew Miner
2016-09-16 19:53:37 -07:00
parent 13b717836a
commit c0472b268d
3 changed files with 14 additions and 2 deletions
@@ -28,6 +28,7 @@ module.exports = class BrowsePageController extends PageController
@_tileControllers = []
@_client.on c.event.change, => @tryRefresh()
@_modPack.on c.event.change, => @tryRefresh()
# Property Methods #############################################################################
@@ -21,8 +21,6 @@ module.exports = class AdsenseController
maxAds = c.adsense[adType].slotIds.length - @_adsPlaced
return if maxAds is 0
logger.verbose => "Looking to place #{maxAds} more #{adType} ads..."
if adType is 'skyscraper'
placedNewAd = @_createSkyscraperPositions()
else