Web Dev Solutions

Catalin Mititiuc

aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/index.js')
-rw-r--r--src/index.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/index.js b/src/index.js
index 3710843..b90c579 100644
--- a/src/index.js
+++ b/src/index.js
@@ -74,6 +74,7 @@ function load() {
linkEl.setAttribute('rel', 'stylesheet');
linkEl.setAttribute('href', 'http://localhost:8080/assets/css/map.css');
linkEl.setAttribute('type', 'text/css');
+
linkEl.onload = function (e) {
console.log('map.css loaded');
@@ -86,6 +87,7 @@ function load() {
scriptEl.setAttribute('href', 'http://localhost:8080/map.js');
}
};
+
svg.prepend(linkEl);
this.style.opacity = 1;