Files
owl/examples/benchmarks/main.js
T

14 lines
270 B
JavaScript
Raw Normal View History

2019-03-18 11:35:03 +01:00
import { App } from "./app.js";
2019-03-18 14:34:35 +01:00
function createApp(el) {
2019-03-18 11:35:03 +01:00
const env = {
2019-03-27 15:26:20 +01:00
qweb: new owl.core.QWeb()
2019-03-18 11:35:03 +01:00
};
const app = new App(env, { initialState: 13 });
2019-03-18 14:34:35 +01:00
app.mount(el);
}
document.addEventListener("DOMContentLoaded", function() {
createApp(document.body);
2019-03-18 11:35:03 +01:00
});