mirror of
https://github.com/discourse/discourse.git
synced 2025-05-24 03:36:18 +08:00
FIX: properly load desktop and mobile only plugin css assets.
5bd6b70d985e2736f56d2bec6cce56bee0227b1f
This commit is contained in:
@ -658,8 +658,8 @@ class Plugin::Instance
|
||||
@directory_name ||= File.dirname(path).split("/").last
|
||||
end
|
||||
|
||||
def css_asset_exists?
|
||||
DiscoursePluginRegistry.stylesheets_exists?(directory_name)
|
||||
def css_asset_exists?(target = nil)
|
||||
DiscoursePluginRegistry.stylesheets_exists?(directory_name, target)
|
||||
end
|
||||
|
||||
def js_asset_exists?
|
||||
|
Reference in New Issue
Block a user