Spiegel von
https://github.com/paviliondev/discourse-custom-wizard.git
synchronisiert 2024-11-22 09:20:29 +01:00
Try a different tack
Dieser Commit ist enthalten in:
Ursprung
1425c1e783
Commit
7731859e95
1 geänderte Dateien mit 3 neuen und 3 gelöschten Zeilen
|
@ -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;
|
||||||
|
|
Laden …
In neuem Issue referenzieren