fixes so it works in no constants mode
This commit is contained in:
parent
34af6a5d54
commit
587e9d917c
|
@ -1,7 +0,0 @@
|
|||
|
||||
export default {
|
||||
name: 'add-query-pluralization',
|
||||
initialize(container) {
|
||||
container.lookup('store:main').addPluralization('query', 'queries');
|
||||
}
|
||||
};
|
|
@ -1,6 +1,9 @@
|
|||
|
||||
export default {
|
||||
name: 'polyfill-string-endswith',
|
||||
name: 'initialize-data-explorer',
|
||||
initialize(container) {
|
||||
container.lookup('store:main').addPluralization('query', 'queries');
|
||||
|
||||
if (!String.prototype.endsWith) {
|
||||
String.prototype.endsWith = function(searchString, position) {
|
||||
var subjectString = this.toString();
|
||||
|
@ -12,5 +15,8 @@ export default {
|
|||
return lastIndex !== -1 && lastIndex === position;
|
||||
};
|
||||
}
|
||||
|
||||
// load route
|
||||
require('discourse/plugins/discourse-data-explorer/discourse/explorer-route-map');
|
||||
}
|
||||
};
|
Loading…
Reference in New Issue