mirror of
https://github.com/discourse/discourse.git
synced 2025-03-06 03:09:43 +00:00
Resolve raw templates in 'javascripts/mobile' and 'javascripts' on mobile
This commit is contained in:
parent
46f2a11a80
commit
6f0a937fa1
@ -2,7 +2,9 @@ import { getResolverOption } from 'discourse-common/resolver';
|
||||
|
||||
export function findRawTemplate(name) {
|
||||
if (getResolverOption('mobileView')) {
|
||||
return Discourse.RAW_TEMPLATES[`mobile/${name}`] ||
|
||||
return Discourse.RAW_TEMPLATES[`javascripts/mobile/${name}`] ||
|
||||
Discourse.RAW_TEMPLATES[`javascripts/${name}`] ||
|
||||
Discourse.RAW_TEMPLATES[`mobile/${name}`] ||
|
||||
Discourse.RAW_TEMPLATES[name];
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user