FIX: If we have no logo defined use sketch in manifest

This commit is contained in:
Sam 2018-05-22 12:10:59 +10:00
parent 661d89f489
commit 3e06def856

View File

@ -14,6 +14,9 @@ class MetadataController < ApplicationController
def default_manifest
logo = SiteSetting.large_icon_url.presence || SiteSetting.logo_small_url.presence || SiteSetting.apple_touch_icon_url.presence
if !logo
logo = path('/images/d-logo-sketch-small.png')
end
file_info = get_file_info(logo)
manifest = {