only perform the check on mobile view

This commit is contained in:
Angus McLeod 2016-08-31 10:23:56 -04:00
parent 0b20c0b581
commit 18da378f9a
1 changed files with 4 additions and 2 deletions

View File

@ -141,8 +141,10 @@ export default Ember.DefaultResolver.extend({
}, },
findPluginMobileTemplate(parsedName) { findPluginMobileTemplate(parsedName) {
var pluginParsedName = this.parseName(parsedName.fullName.replace("template:", "template:javascripts/mobile/")); if (this.mobileView) {
return this.findTemplate(pluginParsedName); var pluginParsedName = this.parseName(parsedName.fullName.replace("template:", "template:javascripts/mobile/"));
return this.findTemplate(pluginParsedName);
}
}, },
findMobileTemplate(parsedName) { findMobileTemplate(parsedName) {