The loader adds link tag for ol.css

This commit is contained in:
Éric Lemoine
2012-10-16 21:55:12 +02:00
parent f4b20175cc
commit 190e21f796
5 changed files with 2 additions and 4 deletions

View File

@@ -54,6 +54,8 @@
pairs.push(encodeURIComponent(key) + '=' + encodeURIComponent(params[key]));
}
document.write('<link rel="stylesheet" href="../css/ol.css" ' +
'type="text/css">');
var url = 'http://' + host + '/compile?' + pairs.join('&');
document.write('<script type="text/javascript" src="' + url + '"></script>');
}());