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) {
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) {