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
1 changed files with 3 additions and 0 deletions

View File

@ -14,6 +14,9 @@ class MetadataController < ApplicationController
def default_manifest def default_manifest
logo = SiteSetting.large_icon_url.presence || SiteSetting.logo_small_url.presence || SiteSetting.apple_touch_icon_url.presence 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) file_info = get_file_info(logo)
manifest = { manifest = {