mirror of
https://github.com/discourse/discourse.git
synced 2025-02-15 06:55:32 +08:00
11 lines
290 B
JavaScript
11 lines
290 B
JavaScript
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];
|
|
}
|