mirror of
https://github.com/discourse/discourse.git
synced 2025-02-15 17:42:45 +08:00
11 lines
290 B
Plaintext
11 lines
290 B
Plaintext
![]() |
import { getResolverOption } from 'discourse-common/resolver';
|
||
|
|
||
|
export function findRawTemplate(name) {
|
||
|
if (getResolverOption('mobileView')) {
|
||
|
return Discourse.RAW_TEMPLATES[`mobile/${name}`] ||
|
||
|
Discourse.RAW_TEMPLATES[name];
|
||
|
}
|
||
|
|
||
|
return Discourse.RAW_TEMPLATES[name];
|
||
|
}
|