Store correct list of available manifest properties
This commit is contained in:
@@ -17,7 +17,8 @@ module Manifique
|
||||
[ :name, :short_name, :description, :icons,
|
||||
:theme_color, :background_color, :display,
|
||||
:start_url, :scope, :share_target ].map(&:to_s).each do |prop|
|
||||
self.send("#{prop}=", manifest[prop]) if manifest[prop]
|
||||
next unless manifest[prop]
|
||||
self.send("#{prop}=", manifest[prop])
|
||||
self.from_web_manifest.add(prop)
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user