1
0
Fork 0
discourse-custom-wizard-unl.../assets/javascripts/wizard/application.js.es6

19 Zeilen
552 B
JavaScript

import { buildResolver } from "discourse/plugins/discourse-custom-wizard/legacy/resolver";
import Application from "@ember/application";
import WizardInitializer from "./lib/initialize/wizard";
import { isTesting } from "discourse-common/config/environment";
export default Application.extend({
rootElement: "#custom-wizard-main",
Resolver: buildResolver("discourse/plugins/discourse-custom-wizard/wizard"),
customEvents: {
paste: "paste",
},
start() {
if (!isTesting()) {
this.initializer(WizardInitializer);
}
},
});