0
0
Fork 1
Spiegel von https://github.com/paviliondev/discourse-custom-wizard.git synchronisiert 2024-11-25 18:50:27 +01:00

Try a different tack

Dieser Commit ist enthalten in:
Angus McLeod 2017-11-02 09:41:26 +08:00
Ursprung 1425c1e783
Commit 7731859e95

Datei anzeigen

@ -2,9 +2,9 @@ export default {
name: 'custom-routes', name: 'custom-routes',
initialize(app) { initialize(app) {
console.log('running custom initializer') if (window.location.pathname.indexOf('/w/') < 0) return;
if (app.constructor.name !== 'Class' || typeof app.get !== 'function' ||
app.get('rootElement') !== '#custom-wizard-main') return; console.log('running initializer')
const Router = requirejs('wizard/router').default; const Router = requirejs('wizard/router').default;
const ApplicationRoute = requirejs('wizard/routes/application').default; const ApplicationRoute = requirejs('wizard/routes/application').default;