2023 walkthrough changes
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
// Generated by CoffeeScript 1.12.5
|
||||
// Generated by CoffeeScript 2.7.0
|
||||
import Ember from 'ember';
|
||||
|
||||
import config from 'ember-get-config';
|
||||
@@ -7,9 +7,9 @@ export default Ember.Component.extend({
|
||||
tagName: 'img',
|
||||
init: function() {
|
||||
var src;
|
||||
src = config.environment === 'development' || config.environment === 'test' ? config.rootURL + "ember-panda/assets/" + (this.get('path')) : config.rootURL + "assets/" + (this.get('path'));
|
||||
src = config.environment === 'development' || config.environment === 'test' ? `${config.rootURL}ember-panda/assets/${this.get('path')}` : `${config.rootURL}assets/${this.get('path')}`;
|
||||
this.set('full_src', src);
|
||||
return this._super.apply(this, arguments);
|
||||
return this._super(...arguments);
|
||||
},
|
||||
attributeBindings: ['full_src:src']
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user