[IMP] owl: update to v0.23.0

This commit is contained in:
Géry Debongnie
2019-10-18 16:03:25 +02:00
parent 1571a16cfd
commit d6e0a9dcba
3 changed files with 24 additions and 30 deletions
+2 -2
View File
@@ -127,7 +127,7 @@ async function makeApp(js, css, xml) {
const JS = `
async function loadTemplates() {
try {
return owl.utils.loadTemplates('app.xml');
return owl.utils.loadFile('app.xml');
} catch(e) {
console.error(\`This app requires a static server. If you have python installed, try 'python app.py'\`);
}
@@ -430,7 +430,7 @@ App.components = { TabbedEditor };
async function start() {
document.title = `${document.title} (v${owl.__info__.version})`;
const [templates] = await Promise.all([
owl.utils.loadTemplates("templates.xml"),
owl.utils.loadFile("templates.xml"),
owl.utils.whenReady()
]);
const qweb = new owl.QWeb(templates);