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…
Reference in New Issue