mirror of
https://github.com/discourse/discourse.git
synced 2026-08-11 05:25:16 -05:00
only perform the check on mobile view
This commit is contained in:
@@ -141,8 +141,10 @@ export default Ember.DefaultResolver.extend({
|
||||
},
|
||||
|
||||
findPluginMobileTemplate(parsedName) {
|
||||
var pluginParsedName = this.parseName(parsedName.fullName.replace("template:", "template:javascripts/mobile/"));
|
||||
return this.findTemplate(pluginParsedName);
|
||||
if (this.mobileView) {
|
||||
var pluginParsedName = this.parseName(parsedName.fullName.replace("template:", "template:javascripts/mobile/"));
|
||||
return this.findTemplate(pluginParsedName);
|
||||
}
|
||||
},
|
||||
|
||||
findMobileTemplate(parsedName) {
|
||||
|
||||
Reference in New Issue
Block a user