0
0
Fork 1
Spiegel von https://github.com/paviliondev/discourse-custom-wizard.git synchronisiert 2024-11-09 11:52:54 +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',
initialize(app) {
console.log('running custom initializer')
if (app.constructor.name !== 'Class' || typeof app.get !== 'function' ||
app.get('rootElement') !== '#custom-wizard-main') return;
if (window.location.pathname.indexOf('/w/') < 0) return;
console.log('running initializer')
const Router = requirejs('wizard/router').default;
const ApplicationRoute = requirejs('wizard/routes/application').default;