2018-01-20 00:46:47 -08:00
|
|
|
import Application from '@ember/application';
|
2020-08-26 15:44:50 -07:00
|
|
|
import Resolver from 'ember-resolver';
|
2017-01-17 19:20:46 -08:00
|
|
|
import loadInitializers from 'ember-load-initializers';
|
|
|
|
import config from './config/environment';
|
|
|
|
|
2020-08-26 15:44:50 -07:00
|
|
|
export default class App extends Application {
|
|
|
|
modulePrefix = config.modulePrefix;
|
|
|
|
podModulePrefix = config.podModulePrefix;
|
|
|
|
Resolver = Resolver;
|
|
|
|
init(): void {
|
|
|
|
super.init();
|
2018-05-15 15:27:36 -07:00
|
|
|
|
|
|
|
/**
|
|
|
|
* disable touch events in ember's event dispatcher (Chrome scrolling fix)
|
|
|
|
* @type {{touchstart: null, touchmove: null, touchend: null, touchcancel: null}}
|
|
|
|
* @link https://github.com/TryGhost/Ghost-Admin/commit/0affec39320f85c94ab54e85fb8bb4103ef41947
|
|
|
|
*/
|
|
|
|
this.customEvents = {
|
|
|
|
touchstart: null,
|
|
|
|
touchmove: null,
|
|
|
|
touchend: null,
|
|
|
|
touchcancel: null
|
|
|
|
};
|
|
|
|
}
|
2020-08-26 15:44:50 -07:00
|
|
|
}
|
2017-01-17 19:20:46 -08:00
|
|
|
|
|
|
|
loadInitializers(App, config.modulePrefix);
|