summaryrefslogtreecommitdiffstats
path: root/src/js/templates.js
diff options
context:
space:
mode:
authorJose Dapena Paz <jdapena@igalia.com>2022-02-16 11:26:35 +0100
committerJose Dapena Paz <jdapena@igalia.com>2022-03-01 18:06:13 +0100
commitb83192da9cd7cb86bd08be2d914456065c603d63 (patch)
tree37dd35edaaad5f779d9b41138c0a7e95c9e7af86 /src/js/templates.js
parentbf07ba892d41d3717324ed0f1cdfc0c9f7c77b57 (diff)
Rework launcher to use new appservice APImarlin_12.93.0marlin/12.93.012.93.0
Bug-AGL: SPEC-4250 Signed-off-by: Jose Dapena Paz <jdapena@igalia.com> Change-Id: I57c9348a9806804ca0ce1246edcd1bb2601a6cfe
Diffstat (limited to 'src/js/templates.js')
-rw-r--r--src/js/templates.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/js/templates.js b/src/js/templates.js
index 2513722..4b71638 100644
--- a/src/js/templates.js
+++ b/src/js/templates.js
@@ -2,12 +2,12 @@ export function load(template) {
return new Promise(function(resolve, reject){
var xhr = new XMLHttpRequest();
- xhr.open('GET', '/templates/'+template);
+ xhr.open('GET', './templates/'+template);
xhr.send();
xhr.onload = function() {
- if (xhr.status != 200) {
+ if (xhr.status != 200 && xhr.status != 0) {
console.error('Error loading template', xhr.status, xhr.statusText);
reject(xhr.status);
} else {