16 lines
373 B
JavaScript
16 lines
373 B
JavaScript
|
|
import { getConfig } from './api.js';
|
|
import routes from './routes.js';
|
|
import wsChannel from './WebSocketChannel.js';
|
|
import config from './config.js';
|
|
import { hashCompat } from './compat.js';
|
|
|
|
// hash route compat
|
|
hashCompat();
|
|
|
|
getConfig().then(cfg => {
|
|
config.set(cfg);
|
|
wsChannel.connect();
|
|
m.route(document.getElementById("app"), "/map/0/12/0/0", routes);
|
|
});
|